docker-container-wait man page

docker-container-wait ā€” Block until one or more containers stop, then print their exit codes

Synopsis

docker container wait CONTAINER [CONTAINER...]

Description

Block until a container stops, then print its exit code.

Examples

$ docker run -d fedora sleep 99
079b83f558a2bc52ecad6b2a5de13622d584e6bb1aea058c11b36511e85e7622
$ docker container wait 079b83f558a2bc
0

Options

-h, --help[=false]

help for wait

See Also

docker-container(1)

Referenced By

docker-container(1).

Aug 2018 Docker Community