summaryrefslogtreecommitdiff
path: root/cmd/podman/stop.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-11-25 14:17:45 +0100
committerGitHub <noreply@github.com>2019-11-25 14:17:45 +0100
commit9fb0adf479b6655d93316ece0cd702c4d4920fe1 (patch)
tree1d3289f8c48191ee57c803559d54564f81530ca7 /cmd/podman/stop.go
parent6187e724353f2d68943f912e0d8fc1d3d3c1f549 (diff)
parenta3d13fb286c39a2d9195b70e4265e5ac0deb6fd3 (diff)
downloadpodman-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/stop.go')
-rw-r--r--cmd/podman/stop.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/podman/stop.go b/cmd/podman/stop.go
index acecb298e..c62da80df 100644
--- a/cmd/podman/stop.go
+++ b/cmd/podman/stop.go
@@ -39,12 +39,14 @@ func init() {
stopCommand.SetUsageTemplate(UsageTemplate())
flags := stopCommand.Flags()
flags.BoolVarP(&stopCommand.All, "all", "a", false, "Stop all running containers")
+ flags.BoolVarP(&stopCommand.Ignore, "ignore", "i", false, "Ignore errors when a specified container is missing")
+ flags.StringArrayVarP(&stopCommand.CIDFiles, "cidfile", "", nil, "Read the container ID from the file")
flags.BoolVarP(&stopCommand.Latest, "latest", "l", false, "Act on the latest container podman is aware of")
flags.UintVar(&stopCommand.Timeout, "time", define.CtrRemoveTimeout, "Seconds to wait for stop before killing the container")
flags.UintVarP(&stopCommand.Timeout, "timeout", "t", define.CtrRemoveTimeout, "Seconds to wait for stop before killing the container")
- flags.StringArrayVarP(&stopCommand.CIDFiles, "cidfile", "", nil, "Read the container ID from the file")
markFlagHiddenForRemoteClient("latest", flags)
markFlagHiddenForRemoteClient("cidfile", flags)
+ markFlagHiddenForRemoteClient("ignore", flags)
}
// stopCmd stops a container or containers