What is the use of “docker wait” commands? with example and image
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
The wait command will wait until a container stops and then print their exit codes.
eg
docker run –name kphttpd httpd
docker wait kphttpd
docker kill kphttpd