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

DevOps

YOUR COSMETIC CARE STARTS HERE

Find the Best Cosmetic Hospitals

Trusted • Curated • Easy

Looking for the right place for a cosmetic procedure? Explore top cosmetic hospitals in one place and choose with confidence.

“Small steps lead to big changes — today is a perfect day to begin.”

Explore Cosmetic Hospitals Compare hospitals, services & options quickly.

✓ Shortlist providers • ✓ Review options • ✓ Take the next step with confidence

Block until one or more containers stop, after that it print their exit codes.
root@ip-172-31-28-155:/home/ubuntu# docker wait test_httpd

root@ip-172-31-28-155:/home/ubuntu# docker stop test_httpd
test_httpd

root@ip-172-31-28-155:/home/ubuntu# docker wait test_httpd
0