summaryrefslogtreecommitdiff
path: root/libpod/storage.go
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2018-02-23 10:18:23 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2018-02-23 17:44:28 +0000
commitfd79671d05895cf209262c3262bab2fdac386984 (patch)
treee6400c9a3f48ae1127098f815f985ba7ff0535ee /libpod/storage.go
parent16ed0baf65f5aa06530fcb3f8b0ccbdf309aedd1 (diff)
downloadpodman-fd79671d05895cf209262c3262bab2fdac386984.tar.gz
podman-fd79671d05895cf209262c3262bab2fdac386984.tar.bz2
podman-fd79671d05895cf209262c3262bab2fdac386984.zip
CreateContainerStorage by image id
When creating container storage by name, if that name is a tagged image then the storage could not be found. We now use the image id which seems more reliable. Also added an integration test to protect against regression. Signed-off-by: baude <bbaude@redhat.com> Closes: #393 Approved by: mheon
Diffstat (limited to 'libpod/storage.go')
-rw-r--r--libpod/storage.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/storage.go b/libpod/storage.go
index 42b9a86ad..100f96e7e 100644
--- a/libpod/storage.go
+++ b/libpod/storage.go
@@ -67,7 +67,7 @@ func (r *storageService) CreateContainerStorage(systemContext *types.SystemConte
return ContainerInfo{}, ErrEmptyID
}
//// Check if we have the specified image.
- ref, err := istorage.Transport.ParseStoreReference(r.store, imageName)
+ ref, err := istorage.Transport.ParseStoreReference(r.store, imageID)
if err != nil {
return ContainerInfo{}, err
}