https://prefect.io logo
Title
a

Alex Welch

02/12/2021, 5:16 PM
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

nicholas

02/13/2021, 6:39 AM
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

Alex Welch

02/13/2021, 5:51 PM
actually, i dont see anytihng in that folder
i can
cd ~/.prefect
but
ls -a
returns nothing
n

nicholas

02/16/2021, 5:41 PM
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

Alex Welch

02/16/2021, 5:42 PM
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

nicholas

02/16/2021, 5:43 PM
That seems like a solid solution!
a

Alex Welch

02/16/2021, 5:43 PM
👍