https://prefect.io logo
Title
c

charmatski

09/25/2020, 2:48 PM
Hi, I would like some help understanding the utility of the Docker image (https://hub.docker.com/r/prefecthq/prefect) I thought I could use this and run it to get a prefect environment running locally.. but trying to start the prefect server I get
No such file or directory: 'docker-compose': 'docker-compose'
Should docker-compose not be installed inside the image and this be a read-to go dev environment?
1
n

nicholas

09/25/2020, 2:52 PM
Hi @charmatski - Prefect Server has many interlocking parts which would be tedious to spin up separately - the image you linked to is normally spun up using
docker-compose
in the host environment. If you have docker compose installed in your host environment, you can run
prefect server start
and Prefect will take care of running the
docker-compose.yml
and injecting the appropriate env variables.
c

charmatski

09/25/2020, 3:04 PM
Ah, so it's intended I write my own docker-compose
n

nicholas

09/25/2020, 3:05 PM
Not at all! Prefect comes with a
docker-compose
file already configured. I'd encourage you to install docker compose and run
prefect server start
to let Prefect take care of that.
c

charmatski

09/25/2020, 3:08 PM
so on the host i'd have to install • prefect using pip3 • docker • docker-compose ?
n

nicholas

09/25/2020, 3:09 PM
Yup, that should do it
c

charmatski

09/25/2020, 3:09 PM
Alright, thanks for your help
😄 1
s

SK

01/19/2021, 9:07 PM
did it work after the steps?