summaryrefslogtreecommitdiff
path: root/libpod/runtime_img.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2018-03-08 14:59:19 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-08 21:23:53 +0000
commit713c08630beff2c3ce4eabeab6dbf5b6dd6fff45 (patch)
tree257fbd01023c2584e35919024df073adcf59adca /libpod/runtime_img.go
parent9afa1f741640694cfdda0156f5ceab5564d1d53c (diff)
downloadpodman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.tar.gz
podman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.tar.bz2
podman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.zip
Podman load can pull in compressed files
Podman load can now load in docker-archive files that are compressed. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #468 Approved by: baude
Diffstat (limited to 'libpod/runtime_img.go')
-rw-r--r--libpod/runtime_img.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/libpod/runtime_img.go b/libpod/runtime_img.go
index 8d2c3a1d6..06bd474d6 100644
--- a/libpod/runtime_img.go
+++ b/libpod/runtime_img.go
@@ -606,7 +606,10 @@ func (r *Runtime) getPullListFromRef(srcRef types.ImageReference, imgName string
// supports pulling from docker-archive, oci, and registries
if srcRef.Transport().Name() == DockerArchive {
- tarSource := tarfile.NewSource(archFile)
+ tarSource, err := tarfile.NewSourceFromFile(archFile)
+ if err != nil {
+ return nil, err
+ }
manifest, err := tarSource.LoadTarManifest()
if err != nil {
return nil, errors.Errorf("error retrieving manifest.json: %v", err)