summaryrefslogtreecommitdiff
path: root/libpod/image
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-22 11:03:46 -0400
committerGitHub <noreply@github.com>2020-10-22 11:03:46 -0400
commit2cb12bbc5a832e5b69d3b52480377df716dc543b (patch)
treea475bf30f9fde2ee989e83620c03049bd2d82654 /libpod/image
parent513c2610f37fa530b951a9a0105f49dfd346c091 (diff)
parent410fa53f89b1c408ce57318bb054b4229ad845d5 (diff)
downloadpodman-2cb12bbc5a832e5b69d3b52480377df716dc543b.tar.gz
podman-2cb12bbc5a832e5b69d3b52480377df716dc543b.tar.bz2
podman-2cb12bbc5a832e5b69d3b52480377df716dc543b.zip
Merge pull request #8098 from vrothberg/fix-8082
container create: record correct image name
Diffstat (limited to 'libpod/image')
-rw-r--r--libpod/image/image.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go
index 62c6a2088..301954703 100644
--- a/libpod/image/image.go
+++ b/libpod/image/image.go
@@ -469,7 +469,7 @@ func (ir *Runtime) getLocalImage(inputName string) (string, *storage.Image, erro
if err != nil {
return "", nil, err
}
- img, err := ir.store.Image(ref.String())
+ img, err := ir.store.Image(reference.TagNameOnly(ref).String())
if err == nil {
return ref.String(), img, nil
}