From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- .../engine%2Freference%2Fcommandline%2Fwait%2Findex.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 devdocs/docker/engine%2Freference%2Fcommandline%2Fwait%2Findex.html (limited to 'devdocs/docker/engine%2Freference%2Fcommandline%2Fwait%2Findex.html') diff --git a/devdocs/docker/engine%2Freference%2Fcommandline%2Fwait%2Findex.html b/devdocs/docker/engine%2Freference%2Fcommandline%2Fwait%2Findex.html new file mode 100644 index 00000000..c08d91dd --- /dev/null +++ b/devdocs/docker/engine%2Freference%2Fcommandline%2Fwait%2Findex.html @@ -0,0 +1,13 @@ +

docker wait


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

Usage

$ docker wait CONTAINER [CONTAINER...]
+

For example uses of this command, refer to the examples section below.

Examples

Start a container in the background.

$ docker run -dit --name=my_container ubuntu bash
+

Run docker wait, which should block until the container exits.

$ docker wait my_container
+

In another terminal, stop the first container. The docker wait command above returns the exit code.

$ docker stop my_container
+

This is the same docker wait command from above, but it now exits, returning 0.

$ docker wait my_container
+
+0
+
+

+ © 2019 Docker, Inc.
Licensed under the Apache License, Version 2.0.
Docker and the Docker logo are trademarks or registered trademarks of Docker, Inc. in the United States and/or other countries.
Docker, Inc. and other parties may also have trademark rights in other terms used herein.
+ https://docs.docker.com/engine/reference/commandline/wait/ +

+
-- cgit v1.2.3