-
when i use this docker to run a fastapi like:
it runs fine, but if i insert a socket listener like;
then it will not run and the errorlog is:
(actually, the socket is a prometheus method) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
From the error it seems like your app is trying to listen on the same port with two different tings, but not sure what it could be. Nevertheless, now that Uvicorn supports managing workers with Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image That might make configurations easier. 🤓 |
Beta Was this translation helpful? Give feedback.
From the error it seems like your app is trying to listen on the same port with two different tings, but not sure what it could be.
Nevertheless, now that Uvicorn supports managing workers with
--workers
, including restarting dead ones, there's no need for Gunicorn. That also means that it's much simpler to build a Docker image from scratch now, I updated the docs to explain it.Because of that, I deprecated this Docker image: https://github.com/tiangolo/uvicorn-gunicorn-fastapi-docker#-warning-you-probably-dont-need-this-docker-image
That might make configurations easier. 🤓