aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-01-03 14:00:45 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-01-04 17:39:42 +0000
commit04593b1591fe78b5e8689ce144431a3f07c19fbe (patch)
treed4ec6559baa4145518a011aaf56e678a82c2ec96 /cmd
parent26c83de94392aa0c1207bea358e3ea22fc047222 (diff)
downloadpodman-04593b1591fe78b5e8689ce144431a3f07c19fbe.tar.gz
podman-04593b1591fe78b5e8689ce144431a3f07c19fbe.tar.bz2
podman-04593b1591fe78b5e8689ce144431a3f07c19fbe.zip
Run by shortname
While pulling by shortname (fedora-minimal) worked, running a container by the short name did not due to a logic error. Signed-off-by: baude <bbaude@redhat.com> Closes: #182 Approved by: rhatdan
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/create.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd/podman/create.go b/cmd/podman/create.go
index 182eb1e56..0ddf59ce0 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -344,7 +344,7 @@ func imageData(c *cli.Context, runtime *libpod.Runtime, image string) (string, s
if err != nil {
return "", "", nil, err
}
- storageImage, err := runtime.GetImage(image)
+ storageImage, err := runtime.GetImage(imageName)
if err != nil {
return "", "", nil, errors.Wrapf(err, "error getting storage image %q", image)
}
@@ -452,7 +452,6 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime) (*createConfig, er
}
shmDir = ctr.ShmDir()
}
-
imageName, imageID, data, err := imageData(c, runtime, image)
if err != nil {
return nil, err