DOKK / manpages / debian 11 / docker.io / docker-container-wait.1.en
DOCKER(1) Docker User Manuals DOCKER(1)

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

docker container wait CONTAINER [CONTAINER...]

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

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

-h, --help[=false] help for wait

docker-container(1)

May 2022 Docker Community