uvicorn-gunicorn-fastapi-docker icon indicating copy to clipboard operation
uvicorn-gunicorn-fastapi-docker copied to clipboard

The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

Open br-follow opened this issue 3 years ago • 3 comments

Attempting to run the docker container on a macbook with an M1 chip gives the following warning:

The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

br-follow avatar Sep 23 '21 19:09 br-follow

FROM --platform=linux/amd64 tiangolo/uvicorn-gunicorn-fastapi:python3.9

in your Dockerfile

or

platform: linux/amd64

in your docker-compose

DorskFR avatar Sep 26 '21 00:09 DorskFR

This should be resolved once #118 is merged - we're using flyingjoe/uvicorn-gunicorn-fastapi:python3.9 in the meantime since the amd64 version was too slow.

flyingjoe avatar Sep 28 '21 18:09 flyingjoe

I opened #118, and in the meantime I've started publishing my own containers you can use.

tedivm avatar Nov 01 '21 13:11 tedivm