summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
Diffstat (limited to 'libpod')
-rw-r--r--libpod/image/image.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index c9f03ebef..4d481c8e5 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -183,6 +183,12 @@ func (i *Image) getLocalImage() (*storage.Image, error) {
if i.InputName == "" {
return nil, errors.Errorf("input name is blank")
}
+ // Check if the input name has a transport and if so strip it
+ dest, err := alltransports.ParseImageName(i.InputName)
+ if err == nil && dest.DockerReference() != nil {
+ i.InputName = dest.DockerReference().String()
+ }
+
var taggedName string
img, err := i.imageruntime.getImage(stripSha256(i.InputName))
if err == nil {