diff options
author | baude <bbaude@redhat.com> | 2019-02-13 09:17:31 -0600 |
---|---|---|
committer | baude <bbaude@redhat.com> | 2019-02-13 11:05:20 -0600 |
commit | f29a11c201a67a82ca2b82d314a57043207aa1ac (patch) | |
tree | 037f60f26e99039defe3161a8595274c58cb5fe0 /cmd | |
parent | ee27c39f85507993c0a3dfe3c4dfab4c7b7e5e00 (diff) | |
download | podman-f29a11c201a67a82ca2b82d314a57043207aa1ac.tar.gz podman-f29a11c201a67a82ca2b82d314a57043207aa1ac.tar.bz2 podman-f29a11c201a67a82ca2b82d314a57043207aa1ac.zip |
Parse fq name correctly for images
When parsing a string name for repo and tag (for images output), we
should be using parsenormalizedname and reference.Canonical to
get the proper output.
Resolves: #2175
Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/podman/images.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/podman/images.go b/cmd/podman/images.go index a9e8abbde..b269f6440 100644 --- a/cmd/podman/images.go +++ b/cmd/podman/images.go @@ -247,8 +247,12 @@ func getImagesTemplateOutput(ctx context.Context, images []*adapter.ContainerIma } // get all specified repo:tag pairs and print them separately + repopairs, err := image.ReposToMap(img.Names()) + if err != nil { + logrus.Errorf("error finding tag/digest for %s", img.ID()) + } outer: - for repo, tags := range image.ReposToMap(img.Names()) { + for repo, tags := range repopairs { for _, tag := range tags { size, err := img.Size(ctx) var sizeStr string |