docker-compose \
-f my.docker-compose.yaml \
run \
--name container-name \
--rm \
service-name-in-yaml \
/bin/bash -c "./manage.py help"
Make sure to follow the order below strictly.
docker-compose
-f <definition file name>
run
[options]
service name in the docker-compose file
startup command
Options are written between the run
(subcommand) and service name, but -f
must be specified before the first subcommand.
Comments