Hey guys, Docker Task question - do the Prefect bu...
# prefect-community
Hey guys, Docker Task question - do the Prefect built in Docker Tasks allow for mounting volumes? I have a case where I want to be able to take a Flow and run some generic Docker container with pre-defined entrypoints, but part of that depends on being able to mount input and output volumes into the container that the Flow starts. I don’t see anything in the code for it, but I’m wondering is it something buried in kwargs maybe? Otherwise it’s a manual “docker run…..” UPDATE Please ignore, I can see the volume option in CreateContainer, I was looking at the wrong version of the API 🙂
👍 2
FWIW, you can alternatively attach the volumes to the DockerAgent with the
kwarg, which allows you to attach volumes to all containers created by that agent.
upvote 1