Files
.copr
.github
cmd
cni
completions
contrib
dependencies
docs
source
_static
markdown
links
containers-mounts.conf.5.md
podman-attach.1.md
podman-auto-update.1.md
podman-build.1.md
podman-commit.1.md
podman-completion.1.md
podman-container-checkpoint.1.md
podman-container-cleanup.1.md
podman-container-exists.1.md
podman-container-prune.1.md
podman-container-restore.1.md
podman-container-runlabel.1.md
podman-container.1.md
podman-cp.1.md
podman-create.1.md
podman-diff.1.md
podman-events.1.md
podman-exec.1.md
podman-export.1.md
podman-generate-kube.1.md
podman-generate-systemd.1.md
podman-generate.1.md
podman-healthcheck-run.1.md
podman-healthcheck.1.md
podman-history.1.md
podman-image-diff.1.md
podman-image-exists.1.md
podman-image-mount.1.md
podman-image-prune.1.md
podman-image-sign.1.md
podman-image-tree.1.md
podman-image-trust.1.md
podman-image-unmount.1.md
podman-image.1.md
podman-images.1.md
podman-import.1.md
podman-info.1.md
podman-init.1.md
podman-inspect.1.md
podman-kill.1.md
podman-load.1.md
podman-login.1.md
podman-logout.1.md
podman-logs.1.md
podman-manifest-add.1.md
podman-manifest-annotate.1.md
podman-manifest-create.1.md
podman-manifest-exists.1.md
podman-manifest-inspect.1.md
podman-manifest-push.1.md
podman-manifest-remove.1.md
podman-manifest.1.md
podman-mount.1.md
podman-network-connect.1.md
podman-network-create.1.md
podman-network-disconnect.1.md
podman-network-exists.1.md
podman-network-inspect.1.md
podman-network-ls.1.md
podman-network-prune.1.md
podman-network-reload.1.md
podman-network-rm.1.md
podman-network.1.md
podman-pause.1.md
podman-play-kube.1.md
podman-play.1.md
podman-pod-create.1.md
podman-pod-exists.1.md
podman-pod-inspect.1.md
podman-pod-kill.1.md
podman-pod-pause.1.md
podman-pod-prune.1.md
podman-pod-ps.1.md
podman-pod-restart.1.md
podman-pod-rm.1.md
podman-pod-start.1.md
podman-pod-stats.1.md
podman-pod-stop.1.md
podman-pod-top.1.md
podman-pod-unpause.1.md
podman-pod.1.md
podman-port.1.md
podman-ps.1.md
podman-pull.1.md
podman-push.1.md
podman-remote.1.md
podman-rename.1.md
podman-restart.1.md
podman-rm.1.md
podman-rmi.1.md
podman-run.1.md
podman-save.1.md
podman-search.1.md
podman-secret-create.1.md
podman-secret-inspect.1.md
podman-secret-ls.1.md
podman-secret-rm.1.md
podman-secret.1.md
podman-start.1.md
podman-stats.1.md
podman-stop.1.md
podman-system-connection-add.1.md
podman-system-connection-default.1.md
podman-system-connection-list.1.md
podman-system-connection-remove.1.md
podman-system-connection-rename.1.md
podman-system-connection.1.md
podman-system-df.1.md
podman-system-migrate.1.md
podman-system-prune.1.md
podman-system-renumber.1.md
podman-system-reset.1.md
podman-system-service.1.md
podman-system.1.md
podman-tag.1.md
podman-top.1.md
podman-unmount.1.md
podman-unpause.1.md
podman-unshare.1.md
podman-untag.1.md
podman-version.1.md
podman-volume-create.1.md
podman-volume-exists.1.md
podman-volume-inspect.1.md
podman-volume-ls.1.md
podman-volume-prune.1.md
podman-volume-rm.1.md
podman-volume.1.md
podman-wait.1.md
podman.1.md
Commands.rst
Introduction.rst
Reference.rst
Search.rst
Tutorials.rst
conf.py
connection.rst
generate.rst
healthcheck.rst
image.rst
includes.rst
index.rst
managecontainers.rst
manifest.rst
network.rst
play.rst
pod.rst
secret.rst
system.rst
volume.rst
tutorials
Makefile
Readme.md
dckrman.sh
links-to-html.lua
make.bat
play.png
podman-derivative-api
remote-docs.sh
requirements.txt
hack
libpod
logo
nix
pkg
test
utils
vendor
version
.cirrus.yml
.dockerignore
.gitignore
.golangci.yml
.pre-commit-config.yaml
.ubuntu_prepare.sh
CODE-OF-CONDUCT.md
CONTRIBUTING.md
Containerfile-testvol
LICENSE
Makefile
OWNERS
README.md
RELEASE_NOTES.md
RELEASE_PROCESS.md
SECURITY.md
Vagrantfile
build_osx.md
changelog.txt
commands-demo.md
commands.md
docker
go.mod
go.sum
install.md
rootless.md
transfer.md
troubleshooting.md
podman/docs/source/markdown/podman-wait.1.md
Daniel J Walsh 9eac4a7f7b podman-remote build does not support volumes
Remove --volume option from podman-remote since it is
not supported, also add information to podman-build man page
indicating options not supported over remote connections.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-03-08 13:46:42 -05:00

1.6 KiB

% podman-wait(1)

NAME

podman-wait - Wait on one or more containers to stop and print their exit codes

SYNOPSIS

podman wait [options] container [...]

podman container wait [options] container [...]

DESCRIPTION

Waits on one or more containers to stop. The container can be referred to by its name or ID. In the case of multiple containers, Podman will wait on each consecutively. After all specified containers are stopped, the containers' return codes are printed separated by newline in the same order as they were given to the command.

OPTIONS

--condition=state

Condition to wait on (default "stopped")

--help, -h

Print usage statement

--interval, -i=duration

Time interval to wait before polling for completion. A duration string is a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms", "-1.5h" or "2h45m". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h". Time unit defaults to "ms".

--latest, -l

Instead of providing the container name or ID, use the last created container. If you use methods other than Podman to run containers such as CRI-O, the last started container could be from either of those methods. (This option is not available with the remote Podman client)

EXAMPLES

$ podman wait mywebserver
0

$ podman wait --latest
0

$ podman wait --interval 2s
0

$ podman wait 860a4b23
1

$ podman wait mywebserver myftpserver
0
125

SEE ALSO

podman(1)

HISTORY

September 2017, Originally compiled by Brent Baudebbaude@redhat.com