🚀 DevOps Certified Professional
📅 Starting: 1st of Every Month 🤝 +91 8409492687 | 🤝 +1 (469) 756-6329 🔍 Contact@DevOpsSchool.com

What is the use of “docker wait” commands? with example and image

DevOps

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.


Get Started Now!

The wait command will wait until a container stop, then print their exit codes.
How to check:
Start a container
docker run –name bitto httpd
Run docker wait
docker wait bitto
Kill the container from another terminal and check the return value in actual terminal
docker kill bitto