diff --git a/libpod/image/pull.go b/libpod/image/pull.go index 378664e83b..7c89709d67 100644 --- a/libpod/image/pull.go +++ b/libpod/image/pull.go @@ -119,9 +119,8 @@ func refNamesFromImageReference(ctx context.Context, srcRef types.ImageReference } // Need to load in all the repo tags from the manifest - dest := manifest[0].RepoTags res := []*pullRefName{} - for _, dst := range dest { + for _, dst := range manifest[0].RepoTags { pullInfo := getPullRefName(srcRef, dst) res = append(res, pullInfo) }