Specifically I'm trying to do docker-compose-in-docker:
docker run -v "$(pwd)":"$(pwd)" \
-v /var/run/docker.sock:/var/run/docker.sock \
-e COMPOSE_PROJECT_NAME=$(basename "$(pwd)") \
--workdir="$(pwd)" \
-ti --rm \
dduportal/docker-compose:latest --help
I guess I'll use command() for now and do a raw list of strings. It might be nice if there was some way to still leverage the executor.
executor.command(executor.docker.run(compose_image, volume=[], env={}, workdir='...')._cmd + ['--help']) is a convenient escape hatch that involves less manual intervention than doing the whole thing from scratch; not sure if this is overall a good API or not
Specifically I'm trying to do docker-compose-in-docker:
I guess I'll use
command()for now and do a raw list of strings. It might be nice if there was some way to still leverage the executor.executor.command(executor.docker.run(compose_image, volume=[], env={}, workdir='...')._cmd + ['--help'])is a convenient escape hatch that involves less manual intervention than doing the whole thing from scratch; not sure if this is overall a good API or not