An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
April 25, 2021 08:02 pm GMT
Original Link: https://dev.to/arunksingh16/how-to-run-multiple-commands-in-docker-container-3bid
How to run multiple commands in Docker Container
There can be scenarios in which you may have to run/execute commands using a container to get something done.
docker run <your container> /bin/bash -c "command1; command2"
arun@mymachine:~ sudo docker run singharunk/dev /bin/bash -c "date; whoami"Sun Apr 25 19:58:50 UTC 2021root
Original Link: https://dev.to/arunksingh16/how-to-run-multiple-commands-in-docker-container-3bid
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To