Does anyone know how to have Prefect running locally in Docker, and then build a flow with a custom ...
w
Does anyone know how to have Prefect running locally in Docker, and then build a flow with a custom Dockerfile? Would that involve a container (the flow) running inside another container (Prefect)?
Actually I think I fundamentally misunderstood. Perfect running in Docker is distinct from deploying an image and then running it in a Docker worker.
The real subtlety was specifying the
networks
param in the
Work Pool
. If you need to connect to other Docker services running locally, you must specify a
network
in your
Work Pool
: 1. In the UI, go to your Work Pool 2. Click the three dots and go to
Edit
3. On the config page, scroll down to
Networks
4. Add the name(s) of your Docker networks in quotes, in a bracketed list, e.g.
["my-docker-network", "my-other-network"]
5. Click
Save
at the bottom!
🙌 2
🦜 1
prefect spin 1