diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-11-25 14:17:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-25 14:17:45 +0100 |
commit | 9fb0adf479b6655d93316ece0cd702c4d4920fe1 (patch) | |
tree | 1d3289f8c48191ee57c803559d54564f81530ca7 /cmd/podman/pod_stop.go | |
parent | 6187e724353f2d68943f912e0d8fc1d3d3c1f549 (diff) | |
parent | a3d13fb286c39a2d9195b70e4265e5ac0deb6fd3 (diff) | |
download | podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.tar.gz podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.tar.bz2 podman-9fb0adf479b6655d93316ece0cd702c4d4920fe1.zip |
Merge pull request #4540 from vrothberg/systemd-improvements
podman rm/stop: add --allow-missing flag
Diffstat (limited to 'cmd/podman/pod_stop.go')
-rw-r--r-- | cmd/podman/pod_stop.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podman/pod_stop.go b/cmd/podman/pod_stop.go index 579e4f1d3..7d3951ec4 100644 --- a/cmd/podman/pod_stop.go +++ b/cmd/podman/pod_stop.go @@ -41,8 +41,10 @@ func init() { podStopCommand.SetUsageTemplate(UsageTemplate()) flags := podStopCommand.Flags() flags.BoolVarP(&podStopCommand.All, "all", "a", false, "Stop all running pods") + flags.BoolVarP(&podStopCommand.Ignore, "ignore", "i", false, "Ignore errors when a specified pod is missing") flags.BoolVarP(&podStopCommand.Latest, "latest", "l", false, "Stop the latest pod podman is aware of") flags.UintVarP(&podStopCommand.Timeout, "timeout", "t", 0, "Seconds to wait for pod stop before killing the container") + markFlagHiddenForRemoteClient("ignore", flags) markFlagHiddenForRemoteClient("latest", flags) } |