github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/docs/source/markdown/podman-stop.1.md (about) 1 % podman-stop(1) 2 3 ## NAME 4 podman\-stop - Stop one or more running containers 5 6 ## SYNOPSIS 7 **podman stop** [*options*] *container* ... 8 9 **podman container stop** [*options*] *container* ... 10 11 ## DESCRIPTION 12 Stops one or more containers. You may use container IDs or names as input. The **--time** switch 13 allows you to specify the number of seconds to wait before forcibly stopping the container after the stop command 14 is issued to the container. The default is 10 seconds. By default, containers are stopped with SIGTERM 15 and then SIGKILL after the timeout. The SIGTERM default can be overridden by the image used to create the 16 container and also via command line when creating the container. 17 18 ## OPTIONS 19 20 #### **--all**, **-a** 21 22 Stop all running containers. This does not include paused containers. 23 24 #### **--cidfile** 25 26 Read container ID from the specified file and remove the container. Can be specified multiple times. 27 28 #### **--ignore**, **-i** 29 30 Ignore errors when specified containers are not in the container store. A user 31 might have decided to manually remove a container which would lead to a failure 32 during the ExecStop directive of a systemd service referencing that container. 33 34 #### **--latest**, **-l** 35 36 Instead of providing the container name or ID, use the last created container. If you use methods other than Podman 37 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, including Mac and Windows (excluding WSL2) machines) 38 39 #### **--time**, **-t**=*seconds* 40 41 Seconds to wait before forcibly stopping the container 42 43 ## EXAMPLES 44 45 $ podman stop mywebserver 46 47 $ podman stop 860a4b235279 48 49 $ podman stop mywebserver 860a4b235279 50 51 $ podman stop --cidfile /home/user/cidfile-1 52 53 $ podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2 54 55 $ podman stop --time 2 860a4b235279 56 57 $ podman stop -a 58 59 $ podman stop --latest 60 61 ## SEE ALSO 62 **[podman(1)](podman.1.md)**, **[podman-rm(1)](podman-rm.1.md)** 63 64 ## HISTORY 65 September 2018, Originally compiled by Brent Baude <bbaude@redhat.com>