summaryrefslogtreecommitdiff
path: root/cmd/podman/rmi.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2018-06-13 07:40:41 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-13 14:30:45 +0000
commit65033b586fb353734d29dac1dfb9f342d5eeaa21 (patch)
tree1713e18f2b1a02d2accb8d5464fe857f67843307 /cmd/podman/rmi.go
parentbe217caa3856c76a6b997c203422715e13b0335a (diff)
downloadpodman-65033b586fb353734d29dac1dfb9f342d5eeaa21.tar.gz
podman-65033b586fb353734d29dac1dfb9f342d5eeaa21.tar.bz2
podman-65033b586fb353734d29dac1dfb9f342d5eeaa21.zip
add podman container and image command
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #941 Approved by: TomSweeneyRedHat
Diffstat (limited to 'cmd/podman/rmi.go')
-rw-r--r--cmd/podman/rmi.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/podman/rmi.go b/cmd/podman/rmi.go
index 796ec2a3d..f3e1a8e36 100644
--- a/cmd/podman/rmi.go
+++ b/cmd/podman/rmi.go
@@ -32,6 +32,15 @@ var (
Flags: rmiFlags,
UseShortOptionHandling: true,
}
+ rmImageCommand = cli.Command{
+ Name: "rm",
+ Usage: "removes one or more images from local storage",
+ Description: rmiDescription,
+ Action: rmiCmd,
+ ArgsUsage: "IMAGE-NAME-OR-ID [...]",
+ Flags: rmiFlags,
+ UseShortOptionHandling: true,
+ }
)
func rmiCmd(c *cli.Context) error {