David Steiner Sand
12/30/2022, 8:35 PMdocker:dind (docker -in-docker) image. The ideia is to run containers inside the flow using the docker sdk. Using the /var/run/docker.sock volume is not an alternative for my use case.
It seems that the only thing stopping me at this point is that I cannot set the privileged flag in the prefect.infrastructure.DockerContainer abstraction. As shown in the docker-compose below, it is required for running the docker:dind container.
services:
dind:
image: docker:dind
privileged: true
Could this option be added to Prefect?
Happy new year for everyone 😄David Steiner Sand
12/30/2022, 8:51 PMcreate_container of docker.api.container.ContainerApiMixin to create the containers. This method accepts the host_config argument, which can be set by using the method create_host_config of the same class, which accepts the privileged argument.Zanie
David Steiner Sand
12/30/2022, 9:09 PMDavid Steiner Sand
12/30/2022, 9:10 PM