Q2. – 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

This command is used for waiting one or more containers to stop. We have to open 2 terminals. In one of them just put docker wait and in the other try to stop the same container. We can see the first terminal with docker wait is returned 0 and stopped waiting.

docker wait renamed1 [Terminal1]

docker stop renamed1 [Terminal2]