Cameron Gallivan

02/22/2021, 8:40 PM
In the case of using docker-compose for a multi-container deployment, is it possible to attach a volume to the new new docker containers created by the run launcher? I can attach the volume to the initial docker_example_pipeline service in
but the new containers that it spins up only use the
instructions and putting a MOUNT command in there won’t actually attach it


02/22/2021, 8:52 PM
hi Cameron - this sounds possible, but might require an extension to the DockerRunLauncher class to support additional config. As long as it's possible to express in a Dockerfile or in an argument to containers.create in the docker python API, it should be possible.

Cameron Gallivan

02/22/2021, 8:59 PM
I don’t think its possible in just the dockerfile, but it does seem possible for containers.create, it’d just require the ability to pass a dict to the ‘volumes’ arg
Yea it seems like it’d work if it was possible to control what was passed to an additional ‘volumes’ arg here:[…]/libraries/dagster-docker/dagster_docker/