docker container wait myapp

Category: Docker

docker container wait myapp

Block until a container stops, then print its exit code

Blocks until the container stops and then prints the exit code. Useful for scripting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.