How to start prefect server from a running docker container? #3449
-
I am trying to start the prefect server from a running docker container, but I get an error which seems related to I am starting my docker container like so:
Then when I run
This is how i install docker compose in the
these are the
Any idea how I might fix this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@snenkov I haven't tried this before (and I wouldn't necessarily recommend attempting to run the entire server off of docker compose in a single container) but my guess is for your use case you might need to mount a Docker daemon in order to use Docker-based commands from inside the container. Again, this isn't a pattern we support and Prefect Server is broken up into separate services, served over a compose network, for reasons like this. |
Beta Was this translation helpful? Give feedback.
-
So I guess I do a similar thing, but the opposite way. I have NFS and mount it to the docker image. I register the flows from the server to the NFS and then Run the flow via the agent (which is running on docker), but the I get the following errr: this is how I mount it when I
|
Beta Was this translation helpful? Give feedback.
@snenkov I haven't tried this before (and I wouldn't necessarily recommend attempting to run the entire server off of docker compose in a single container) but my guess is for your use case you might need to mount a Docker daemon in order to use Docker-based commands from inside the container. Again, this isn't a pattern we support and Prefect Server is broken up into separate services, served over a compose network, for reasons like this.