NAME¶ 名称
podman-pod-restart - Restart one or more pods
podman-pod-restart - 重新启动一个或多个 pod
SYNOPSIS¶ 概要
podman pod restart [options] pod …
podman pod restart [选项] pod…
DESCRIPTION¶ 描述
Restart containers in one or more pods. Running containers are stopped and restarted.
Stopped containers are started. You may use pod IDs or names as input.
The pod ID is printed upon successful restart.
When restarting multiple pods, an error from restarting one pod does not effect restarting other pods.
重新启动一个或多个 pod 中的容器。正在运行的容器将被停止并重新启动。已停止的容器将被启动。您可以使用 pod 的 ID 或名称作为输入。成功重新启动后,将打印出 pod 的 ID。当重新启动多个 pod 时,一个 pod 的重新启动错误不会影响其他 pod 的重新启动。
OPTIONS¶ 选项
--all, -a¶
Restarts all pods 重新启动所有的 pod
--latest, -l¶
Instead of providing the pod name or ID, restart the last created pod. (This option is not available with the remote Podman client, including Mac and Windows (excluding WSL2) machines)
重新启动最后创建的 pod,而不是提供 pod 名称或 ID。(此选项在远程 Podman 客户端中不可用,包括 Mac 和 Windows(不包括 WSL2)机器)
EXAMPLE¶ 例子 ¶
Restart pod with a given name:
使用给定名称重新启动 pod:
podman pod restart mywebserverpod
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907
Restart multiple pods with given IDs:
使用给定的 ID 重新启动多个 pod:
podman pod restart 490eb 3557fb
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
Restart the last created pod:
重新启动最后创建的 pod:
podman pod restart --latest
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
Restart all pods: 重新启动所有的 pod:
podman pod restart --all
19456b4cd557eaf9629825113a552681a6013f8c8cad258e36ab825ef536e818
3557fbea6ad61569de0506fe037479bd9896603c31d3069a6677f23833916fab
490eb241aaf704d4dd2629904410fe4aa31965d9310a735f8755267f4ded1de5
70c358daecf71ef9be8f62404f926080ca0133277ef7ce4f6aa2d5af6bb2d3e9
cc8f0bea67b1a1a11aec1ecd38102a1be4b145577f21fc843c7c83b77fc28907
SEE ALSO¶ 参见 ¶
HISTORY¶ 历史 ¶
July 2018, Originally compiled by Peter Hunt pehunt@redhat.com
2018 年 7 月,最初由 Peter Hunt pehunt@redhat.com 编译