github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/man/src/container/wait.md (about)

     1  Block until a container stops, then print its exit code.
     2  
     3  # EXAMPLES
     4  
     5      $ docker run -d fedora sleep 99
     6      079b83f558a2bc52ecad6b2a5de13622d584e6bb1aea058c11b36511e85e7622
     7      $ docker container wait 079b83f558a2bc
     8      0