aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/tag.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/tag.go')
-rw-r--r--cmd/podman/tag.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/podman/tag.go b/cmd/podman/tag.go
index f29c8c182..b71ee97b8 100644
--- a/cmd/podman/tag.go
+++ b/cmd/podman/tag.go
@@ -30,7 +30,10 @@ func tagCmd(c *cli.Context) error {
}
defer runtime.Shutdown(false)
- img, err := runtime.GetImage(args[0])
+ newImage := runtime.NewImage(args[0])
+ newImage.GetLocalImageName()
+
+ img, err := runtime.GetImage(newImage.LocalName)
if err != nil {
return err
}