summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-09-13 08:36:49 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-13 13:27:09 +0000
commit61eda671eca96b6fa32369572d9b49850895d37b (patch)
tree98d3f4f21bca8fd6368e09852c142bf8116be682 /cmd/podman
parentfacab2aec561c6d06ae2789dfaffa28b7f273c88 (diff)
downloadpodman-61eda671eca96b6fa32369572d9b49850895d37b.tar.gz
podman-61eda671eca96b6fa32369572d9b49850895d37b.tar.bz2
podman-61eda671eca96b6fa32369572d9b49850895d37b.zip
Add `podman rm --volumes` flag
While this is not implemented yet, it is needed for working with existing docker scripts. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1460 Approved by: mheon
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/rm.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd/podman/rm.go b/cmd/podman/rm.go
index eb9f1b170..caf7a5f36 100644
--- a/cmd/podman/rm.go
+++ b/cmd/podman/rm.go
@@ -13,14 +13,18 @@ import (
var (
rmFlags = []cli.Flag{
cli.BoolFlag{
+ Name: "all, a",
+ Usage: "Remove all containers",
+ },
+ cli.BoolFlag{
Name: "force, f",
Usage: "Force removal of a running container. The default is false",
},
+ LatestFlag,
cli.BoolFlag{
- Name: "all, a",
- Usage: "Remove all containers",
+ Name: "volumes, v",
+ Usage: "Remove the volumes associated with the container (Not implemented yet)",
},
- LatestFlag,
}
rmDescription = fmt.Sprintf(`
Podman rm will remove one or more containers from the host.