NAME¶ 名称
podman-unpause - Unpause one or more containers
podman-unpause - 恢复一个或多个容器
SYNOPSIS¶ 概要
podman unpause [options]|[container …]
podman unpause [选项]|[容器 …]
podman container unpause [options]|[container …]
podman 容器 unpause [选项]|[容器 …]
DESCRIPTION¶ 描述
Unpauses the processes in one or more containers. Container IDs or names can be used as input.
取消一个或多个容器中的进程暂停。可以使用容器 ID 或名称作为输入。
OPTIONS¶ 选项
--all, -a¶
Unpause all paused containers.
取消所有已暂停的容器的暂停状态。
--cidfile=file¶
Read container ID from the specified file and unpause the container.
Can be specified multiple times.
从指定文件中读取容器 ID 并取消暂停容器。可以多次指定。
--filter, -f=filter¶ --filter, -f=过滤器 ¶
Filter what containers unpause.
Multiple filters can be given with multiple uses of the --filter flag.
Filters with the same key work inclusive with the only exception being
label
which is exclusive. Filters with different keys always work exclusive.
过滤哪些容器取消暂停。可以使用多个 --filter 标志来提供多个过滤器。具有相同键的过滤器与唯一例外 label
一起工作,该例外是排他的。具有不同键的过滤器始终是排他的。
Valid filters are listed below:
下面列出了有效的过滤器:
Filter |
Description |
---|---|
id |
[ID] Container’s ID (CID prefix match by default; accepts regex) |
name |
[Name] Container’s name (accepts regex) |
label |
[Key] or [Key=Value] Label assigned to a container |
exited |
[Int] Container’s exit code |
status |
[Status] Container’s status: ‘created’, ‘exited’, ‘paused’, ‘running’, ‘unknown’ |
ancestor |
[ImageName] Image or descendant used to create container |
before |
[ID] or [Name] Containers created before this container |
since |
[ID] or [Name] Containers created since this container |
volume |
[VolumeName] or [MountpointDestination] Volume mounted in container |
health |
[Status] healthy or unhealthy |
pod |
[Pod] name or full or partial ID of pod |
network |
[Network] name or full ID of network |
until |
[DateTime] Containers created before the given duration or time. |
--latest, -l¶
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)
不要提供容器名称或 ID,而是使用最后创建的容器。注意:最后启动的容器可能来自主机上其他 Podman 用户。(此选项在远程 Podman 客户端中不可用,包括 Mac 和 Windows(不包括 WSL2)主机)
EXAMPLE¶ 例子 ¶
Unpause specified container:
取消暂停指定的容器:
podman unpause mywebserver
Unpause container by a partial container ID:
通过部分容器 ID 取消暂停容器:
podman unpause 860a4b23
Unpause all paused containers:
取消暂停所有已暂停的容器:
podman unpause --all
Unpause container using ID specified in given files:
使用给定文件中指定的 ID 取消暂停容器:
podman unpause --cidfile /home/user/cidfile-1
podman unpause --cidfile /home/user/cidfile-1 --cidfile ./cidfile-2
Unpause the latest container. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines):
取消暂停最新的容器。(此选项不适用于远程 Podman 客户端,包括 Mac 和 Windows(不包括 WSL2)机器):
podman unpause --latest
SEE ALSO¶ 参见 ¶
HISTORY¶ 历史 ¶
September 2017, Originally compiled by Dan Walsh dwalsh@redhat.com
2017 年 9 月,最初由 Dan Walsh dwalsh@redhat.com 编写