summaryrefslogtreecommitdiff
path: root/pkg/adapter
diff options
context:
space:
mode:
authorSascha Grunert <sgrunert@suse.com>2019-12-16 13:28:16 +0100
committerSascha Grunert <sgrunert@suse.com>2020-01-08 10:06:10 +0100
commit40b74e02b77e83c377fdae83f626f83403b38152 (patch)
treec71e9d5c4cd1c1517006368c151b81c4ea5d4077 /pkg/adapter
parentc41fd09a8da3a96bc0e58f9f29f87b9bdf30264d (diff)
downloadpodman-40b74e02b77e83c377fdae83f626f83403b38152.tar.gz
podman-40b74e02b77e83c377fdae83f626f83403b38152.tar.bz2
podman-40b74e02b77e83c377fdae83f626f83403b38152.zip
Add `untag` sub-command
Podman now supports untagging images via the `untag` sub-command for the root and `image` commands. Testing and documentation has been added as well. Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'pkg/adapter')
-rw-r--r--pkg/adapter/runtime_remote.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/adapter/runtime_remote.go b/pkg/adapter/runtime_remote.go
index fe5cc4fef..9c10b31c0 100644
--- a/pkg/adapter/runtime_remote.go
+++ b/pkg/adapter/runtime_remote.go
@@ -413,6 +413,12 @@ func (ci *ContainerImage) TagImage(tag string) error {
return err
}
+// UntagImage removes a single tag from an image
+func (ci *ContainerImage) UntagImage(tag string) error {
+ _, err := iopodman.UntagImage().Call(ci.Runtime.Conn, ci.ID(), tag)
+ return err
+}
+
// RemoveImage calls varlink to remove an image
func (r *LocalRuntime) RemoveImage(ctx context.Context, img *ContainerImage, force bool) (*image.ImageDeleteResponse, error) {
ir := image.ImageDeleteResponse{}