docker-container-wait(1)

docker-container-wait1

Block until one or more containers stop, then print their exit codes

Usage

docker container wait CONTAINER [CONTAINER ...]

Overview

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

Examples

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

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From docker 1:29.9.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.