1

developers

I need your help. I want to use docker-compose command in cli like below.

docker-compose run --entrypoint="" my_app apt-get update && pip install -U pip

The reason why I use this is I want to use another command for test my container, cause there are my build command for django in my entrypoint.sh.

Can I use multiple command in cli environment?

1 Answer 1

3

To execute multiple commands use bash. Example:

docker exec <container_name> bash "-c" "cd / && ls "
Sign up to request clarification or add additional context in comments.

Comments