aboutsummaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go12
1 files changed, 11 insertions, 1 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index cc6275494..8a21785bf 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -624,7 +624,17 @@ func (r *Runtime) getPullListFromRef(srcRef types.ImageReference, imgName string
}
pullStructs = append(pullStructs, pullInfo)
} else {
- pullInfo, err := r.getPullStruct(srcRef, manifest[0].RepoTags[0])
+ var dest string
+ if len(manifest[0].RepoTags) > 0 {
+ dest = manifest[0].RepoTags[0]
+ } else {
+ // If the input image has no repotags, we need to feed it a dest anyways
+ dest, err = getImageDigest(srcRef, sc)
+ if err != nil {
+ return nil, err
+ }
+ }
+ pullInfo, err := r.getPullStruct(srcRef, dest)
if err != nil {
return nil, err
}