github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/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.
    38  
    39  The latest option is not supported on the remote client.
    40  
    41  #### **--time**, **-t**=*time*
    42  
    43  Time to wait before forcibly stopping the container
    44  
    45  ## EXAMPLES
    46  
    47  $ podman stop mywebserver
    48  
    49  $ podman stop 860a4b235279
    50  
    51  $ podman stop mywebserver 860a4b235279
    52  
    53  $ podman stop --cidfile /home/user/cidfile-1
    54  
    55  $ podman stop --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
    56  
    57  $ podman stop --time 2 860a4b235279
    58  
    59  $ podman stop -a
    60  
    61  $ podman stop --latest
    62  
    63  ## SEE ALSO
    64  podman(1), podman-rm(1)
    65  
    66  ## HISTORY
    67  September 2018, Originally compiled by Brent Baude <bbaude@redhat.com>