96 lines
2.7 KiB
Groff
96 lines
2.7 KiB
Groff
.nh
|
|
.TH podman-pod-stop 1
|
|
.SH NAME
|
|
podman-pod-stop \- Stop one or more pods
|
|
|
|
.SH SYNOPSIS
|
|
\fBpodman pod stop\fP [\fIoptions\fP] \fIpod\fP ...
|
|
|
|
.SH DESCRIPTION
|
|
Stop containers in one or more pods. You may use pod IDs or names as input.
|
|
|
|
.SH OPTIONS
|
|
.SS \fB--all\fP, \fB-a\fP
|
|
Stops all pods
|
|
|
|
.SS \fB--ignore\fP, \fB-i\fP
|
|
Ignore errors when specified pods are not in the container store. A user
|
|
might have decided to manually remove a pod which leads to a failure
|
|
during the ExecStop directive of a systemd service referencing that pod.
|
|
|
|
.SS \fB--latest\fP, \fB-l\fP
|
|
Instead of providing the pod name or ID, use the last created pod.
|
|
Note: the last started pod can be from other users of Podman on the host machine.
|
|
(This option is not available with the remote Podman client, including Mac and Windows
|
|
(excluding WSL2) machines)
|
|
|
|
.SS \fB--pod-id-file\fP=\fIfile\fP
|
|
Read pod ID from the specified \fIfile\fP and stop the pod. Can be specified multiple times.
|
|
|
|
.SS \fB--time\fP, \fB-t\fP=\fIseconds\fP
|
|
Seconds to wait before forcibly stopping running containers within the pod.
|
|
Use -1 for infinite wait.
|
|
|
|
.SH EXAMPLE
|
|
Stop pod with a given name.
|
|
|
|
.EX
|
|
$ podman pod stop mywebserverpod
|
|
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907
|
|
.EE
|
|
|
|
.PP
|
|
Stop multiple pods with given IDs.
|
|
|
|
.EX
|
|
$ podman pod stop 490eb 3557fb
|
|
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
|
|
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
|
|
.EE
|
|
|
|
.PP
|
|
Stop the last created pod. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
|
|
|
|
.EX
|
|
$ podman pod stop --latest
|
|
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
|
|
.EE
|
|
|
|
.PP
|
|
Stop all pods.
|
|
|
|
.EX
|
|
$ podman pod stop --all
|
|
19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818
|
|
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
|
|
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
|
|
70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9
|
|
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907
|
|
.EE
|
|
|
|
.PP
|
|
Stop two pods via --pod-id-file.
|
|
|
|
.EX
|
|
$ podman pod stop --pod-id-file file1 --pod-id-file file2
|
|
19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818
|
|
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907
|
|
.EE
|
|
|
|
.PP
|
|
Stop all pods with a timeout of 1 second.
|
|
|
|
.EX
|
|
$ podman pod stop -a -t 1
|
|
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
|
|
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
|
|
70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9
|
|
.EE
|
|
|
|
.SH SEE ALSO
|
|
\fBpodman(1)\fP, \fBpodman-pod(1)\fP, \fBpodman-pod-start(1)\fP
|
|
|
|
.SH HISTORY
|
|
July 2018, Originally compiled by Peter Hunt pehunt@redhat.com
|
|
\[la]mailto:pehunt@redhat.com\[ra]
|