Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!
We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!
Learn from Guru Rajesh Kumar and double your salary in just one year.
What is the use of “docker wait” commands? with example and image
Docker wait
The wait command will wait for the monitored container/containers to stop and will print their exit codes.
Blocks until one or more containers stop, then print their exit codes.
How to check:
Start a container in the background
docker run –name abhi httpd
Run docker wait
docker wait abhi
Kill the container from duplicat terminal and check the return value in actual terminal
docker stop abhi
