mirror of
https://github.com/containers/podman.git
synced 2025-12-08 14:48:48 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user