uvicorn-gunicorn-fastapi-docker
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
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
FROM --platform=linux/amd64 tiangolo/uvicorn-gunicorn-fastapi:python3.9
in your Dockerfile
or
platform: linux/amd64
in your docker-compose
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.
I opened #118, and in the meantime I've started publishing my own containers you can use.