2018-05-29 17:18:34 +00:00
|
|
|
% podman-stop "1"
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## NAME
|
2018-04-26 13:21:11 +00:00
|
|
|
podman\-stop - Stop one or more containers
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## SYNOPSIS
|
2018-06-29 17:53:33 +00:00
|
|
|
**podman stop** [*options*] *container* ...
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## DESCRIPTION
|
|
|
|
Stops one or more containers. You may use container IDs or names as input. The **--timeout** switch
|
|
|
|
allows you to specify the number of seconds to wait before forcibly stopping the container after the stop command
|
2018-02-06 18:40:52 +00:00
|
|
|
is issued to the container. The default is 10 seconds. By default, containers are stopped with SIGTERM
|
|
|
|
and then SIGKILL after the timeout. The SIGTERM default can be overridden by the image used to create the
|
|
|
|
container and also via command line when creating the container.
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## OPTIONS
|
|
|
|
|
2017-11-30 02:01:39 +00:00
|
|
|
**--all, -a**
|
|
|
|
|
|
|
|
Stop all running containers. This does not include paused containers.
|
|
|
|
|
2018-01-02 22:29:43 +00:00
|
|
|
**--latest, -l**
|
2018-06-14 15:44:39 +00:00
|
|
|
|
2018-01-02 22:29:43 +00:00
|
|
|
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.
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2018-09-29 15:27:58 +00:00
|
|
|
**--timeout, --time, t**
|
|
|
|
|
|
|
|
Timeout to wait before forcibly stopping the container
|
|
|
|
|
2017-11-01 15:24:59 +00:00
|
|
|
## EXAMPLE
|
|
|
|
|
2017-12-15 21:58:36 +00:00
|
|
|
podman stop mywebserver
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2017-12-15 21:58:36 +00:00
|
|
|
podman stop 860a4b23
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2017-12-15 21:58:36 +00:00
|
|
|
podman stop mywebserver 860a4b23
|
2017-11-30 02:01:39 +00:00
|
|
|
|
2017-12-15 21:58:36 +00:00
|
|
|
podman stop --timeout 2 860a4b23
|
2017-11-01 15:24:59 +00:00
|
|
|
|
2017-12-15 21:58:36 +00:00
|
|
|
podman stop -a
|
2017-11-30 02:01:39 +00:00
|
|
|
|
2018-01-02 22:29:43 +00:00
|
|
|
podman stop --latest
|
|
|
|
|
2017-11-01 15:24:59 +00:00
|
|
|
## SEE ALSO
|
2017-12-15 21:58:36 +00:00
|
|
|
podman(1), podman-rm(1)
|
2017-11-01 15:24:59 +00:00
|
|
|
|
|
|
|
## HISTORY
|
|
|
|
September 2018, Originally compiled by Brent Baude <bbaude@redhat.com>
|