According to here, in order to docker-run
multiple commands, I need
docker run image_name /bin/bash -c "cd /path/to/somewhere; python a.py"
However, I can specify the default shell in the Dockerfile
with the SHELL
instruction. So given that I can already specify the default shell of a container, why is it necessary to specify again with /bin/bash -c
when running the docker container? What was the rationale behind not automatically using the shell specified with the SHELL
instruction?