when trying to use prefect locally via the docker ...
# prefect-server
a
when trying to use prefect locally via the docker image
docker run -it prefecthq/prefect:latest
, when i then run
prefect server start
I get a FileNotFoundError looking for a docker-compose file. I am running the command in the docker container
n
Hi @Alex Welch - I can't test this atm but my initial guess would be this is a docker-in-docker issue; can you confirm by execing into that container that the docker compose file exists in the
~/.prefect
directory?
a
actually, i dont see anytihng in that folder
i can
cd ~/.prefect
but
ls -a
returns nothing
n
Hi @Alex Welch - sorry for the slow response here, I've tested this and can confirm what you're seeing; the issue arises because the base Prefect image isn't intended to run Prefect Server, it's intended to package core components for running flows. As such, it doesn't have docker installed; to make this work, you'll need to create your own image that has docker, and install prefect in that.
Note: this isn't really recommended because docker-in-docker isn't really supported; running
prefect server start
already spins up a series of containers that represent the prefect server stack
a
makes total sense
ive gone the route of having a dev-agent set up on our ECS that we can connect to through labels
n
That seems like a solid solution!
a
👍