summaryrefslogtreecommitdiff
path: root/libpod/storage.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-03-31 21:34:50 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-02 14:22:57 +0000
commit48811d539ed611c45d97d28a651e341ebeecdc92 (patch)
tree9c5d85887a378ee47e58ae537a6f385a4d830890 /libpod/storage.go
parent4553f2914c94f7095b3ae9b3724bd67a1347b87f (diff)
downloadpodman-48811d539ed611c45d97d28a651e341ebeecdc92.tar.gz
podman-48811d539ed611c45d97d28a651e341ebeecdc92.tar.bz2
podman-48811d539ed611c45d97d28a651e341ebeecdc92.zip
Don't return an ImageConfig when creating storage
We don't use it directly, we aren't going to cache it in the DB, and when we do use it (image volumes) we might well be in a different process (podman create -> podman start). No point in keeping it around. Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #571 Approved by: rhatdan
Diffstat (limited to 'libpod/storage.go')
-rw-r--r--libpod/storage.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/libpod/storage.go b/libpod/storage.go
index 100f96e7e..d135285f6 100644
--- a/libpod/storage.go
+++ b/libpod/storage.go
@@ -7,7 +7,6 @@ import (
istorage "github.com/containers/image/storage"
"github.com/containers/image/types"
"github.com/containers/storage"
- "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)
@@ -29,7 +28,6 @@ func getStorageService(store storage.Store) (*storageService, error) {
type ContainerInfo struct {
Dir string
RunDir string
- Config *v1.Image
}
// RuntimeContainerMetadata is the structure that we encode as JSON and store
@@ -82,11 +80,6 @@ func (r *storageService) CreateContainerStorage(systemContext *types.SystemConte
}
defer image.Close()
- imageConfig, err := image.OCIConfig()
- if err != nil {
- return ContainerInfo{}, err
- }
-
// Update the image name and ID.
if imageName == "" && len(img.Names) > 0 {
imageName = img.Names[0]
@@ -159,7 +152,6 @@ func (r *storageService) CreateContainerStorage(systemContext *types.SystemConte
return ContainerInfo{
Dir: containerDir,
RunDir: containerRunDir,
- Config: imageConfig,
}, nil
}