Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 25, 2021 08:02 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To