126 lines
2.9 KiB
Groff
126 lines
2.9 KiB
Groff
'\" t
|
|
.nh
|
|
.TH podman-pause 1
|
|
.SH NAME
|
|
podman-pause \- Pause one or more containers
|
|
|
|
.SH SYNOPSIS
|
|
\fBpodman pause\fP [\fIoptions\fP] [\fIcontainer\fP\&...]
|
|
|
|
.PP
|
|
\fBpodman container pause\fP [\fIoptions\fP] [\fIcontainer\fP\&...]
|
|
|
|
.SH DESCRIPTION
|
|
Pauses all the processes in one or more containers. You may use container IDs or names as input.
|
|
|
|
.SH OPTIONS
|
|
.SS \fB--all\fP, \fB-a\fP
|
|
Pause all running containers.
|
|
|
|
.SS \fB--cidfile\fP=\fIfile\fP
|
|
Read container ID from the specified \fIfile\fP and pause the container.
|
|
Can be specified multiple times.
|
|
|
|
.SS \fB--filter\fP, \fB-f\fP=\fIfilter\fP
|
|
Filter what containers pause.
|
|
Multiple filters can be given with multiple uses of the --filter flag.
|
|
Filters with the same key work inclusive with the only exception being
|
|
\fBlabel\fR which is exclusive. Filters with different keys always work exclusive.
|
|
|
|
.PP
|
|
Valid filters are listed below:
|
|
|
|
.TS
|
|
allbox;
|
|
l l
|
|
l l .
|
|
\fB\fBFilter\fP\fP \fB\fBDescription\fP\fP
|
|
id T{
|
|
[ID] Container's ID (CID prefix match by default; accepts regex)
|
|
T}
|
|
name T{
|
|
[Name] Container's name (accepts regex)
|
|
T}
|
|
label T{
|
|
[Key] or [Key=Value] Label assigned to a container
|
|
T}
|
|
exited [Int] Container's exit code
|
|
status T{
|
|
[Status] Container's status: 'created', 'initialized', 'exited', 'paused', 'running', 'unknown'
|
|
T}
|
|
ancestor T{
|
|
[ImageName] Image or descendant used to create container
|
|
T}
|
|
before T{
|
|
[ID] or [Name] Containers created before this container
|
|
T}
|
|
since T{
|
|
[ID] or [Name] Containers created since this container
|
|
T}
|
|
volume T{
|
|
[VolumeName] or [MountpointDestination] Volume mounted in container
|
|
T}
|
|
health [Status] healthy or unhealthy
|
|
pod T{
|
|
[Pod] name or full or partial ID of pod
|
|
T}
|
|
network T{
|
|
[Network] name or full ID of network
|
|
T}
|
|
until T{
|
|
[DateTime] Containers created before the given duration or time.
|
|
T}
|
|
command T{
|
|
[Command] the command the container is executing, only argv[0] is taken
|
|
T}
|
|
.TE
|
|
|
|
.SS \fB--latest\fP, \fB-l\fP
|
|
Instead of providing the container name or ID, use the last created container.
|
|
Note: the last started container 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)
|
|
|
|
.SH EXAMPLE
|
|
Pause specified container:
|
|
|
|
.EX
|
|
podman pause mywebserver
|
|
.EE
|
|
|
|
.PP
|
|
Pause container by partial container ID:
|
|
|
|
.EX
|
|
podman pause 860a4b23
|
|
.EE
|
|
|
|
.PP
|
|
Pause all \fBrunning\fP containers:
|
|
|
|
.EX
|
|
podman pause --all
|
|
.EE
|
|
|
|
.PP
|
|
Pause container using ID specified in given files:
|
|
|
|
.EX
|
|
podman pause --cidfile /home/user/cidfile-1
|
|
podman pause --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
|
|
.EE
|
|
|
|
.PP
|
|
Pause the latest container. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines):
|
|
|
|
.EX
|
|
podman pause --latest
|
|
.EE
|
|
|
|
.SH SEE ALSO
|
|
\fBpodman(1)\fP, \fBpodman-unpause(1)\fP
|
|
|
|
.SH HISTORY
|
|
September 2017, Originally compiled by Dan Walsh dwalsh@redhat.com
|
|
\[la]mailto:dwalsh@redhat.com\[ra]
|