summaryrefslogtreecommitdiff
path: root/cmd/podman/pod.go
diff options
context:
space:
mode:
authorPeter Hunt <pehunt@redhat.com>2019-03-15 17:41:03 -0400
committerPeter Hunt <pehunt@redhat.com>2019-04-16 11:23:18 -0400
commit0b34b4a59cf090a47a2a13cc4814954c497b3d49 (patch)
tree22e5185775ae83766d6911dd6b3d6b8376a976e1 /cmd/podman/pod.go
parenta2e9626d92dedb182a500c3a0f04dcc0499a6d54 (diff)
downloadpodman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.tar.gz
podman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.tar.bz2
podman-0b34b4a59cf090a47a2a13cc4814954c497b3d49.zip
Add podman pod prune
podman system prune would leave pods be, and not prune them if they were stopped. Fix this by adding a `podman pod prune` command that prunes stopped pods similarly to containers. Signed-off-by: Peter Hunt <pehunt@redhat.com>
Diffstat (limited to 'cmd/podman/pod.go')
-rw-r--r--cmd/podman/pod.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/pod.go b/cmd/podman/pod.go
index 2d9bca21d..ed331965e 100644
--- a/cmd/podman/pod.go
+++ b/cmd/podman/pod.go
@@ -24,6 +24,7 @@ var podSubCommands = []*cobra.Command{
_podInspectCommand,
_podKillCommand,
_podPauseCommand,
+ _prunePodsCommand,
_podPsCommand,
_podRestartCommand,
_podRmCommand,