From 30ae8b0c7e2238332aa1466399330612065024ca Mon Sep 17 00:00:00 2001 From: Dean Chen <862469039@qq.com> Date: Tue, 18 Aug 2026 18:43:32 +0500 Subject: [PATCH] docs(wait): say multiple containers are waited in order wait loops over the names and prints one exit code per line. It does not wait for all of them in parallel. Signed-off-by: Dean Chen <862469039@qq.com> --- docs/reference/commandline/container_wait.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/reference/commandline/container_wait.md b/docs/reference/commandline/container_wait.md index cc2f73b32b74..049f2e276378 100644 --- a/docs/reference/commandline/container_wait.md +++ b/docs/reference/commandline/container_wait.md @@ -14,6 +14,10 @@ Block until one or more containers stop, then print their exit codes > `docker wait` returns `0` when run against a container which had already > exited before the `docker wait` command was run. +With more than one container, `docker wait` handles them in argument +order: it waits for the first to stop, prints that exit code, then +moves on to the next. Exit codes are one per line. + ## Examples Start a container in the background.