summaryrefslogtreecommitdiff
path: root/pkg/domain/infra/abi
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-04-03 22:41:18 +0200
committerGitHub <noreply@github.com>2020-04-03 22:41:18 +0200
commit35f586783388cdff6b4f15e7aff4df1ee72d9b67 (patch)
tree3d44eed09f7dca13f9c152468b55ee2968e5f6b8 /pkg/domain/infra/abi
parent64cade0f71a8189403d208cbc7dc8716008229be (diff)
parent837aad724ff1f7f4cc3b125b8b3419af29cd4982 (diff)
downloadpodman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.tar.gz
podman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.tar.bz2
podman-35f586783388cdff6b4f15e7aff4df1ee72d9b67.zip
Merge pull request #5672 from baude/v2save
podmanv2 save image
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r--pkg/domain/infra/abi/images.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index 94008f287..9d706a112 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -405,3 +405,11 @@ func (ir *ImageEngine) Import(ctx context.Context, opts entities.ImageImportOpti
}
return &entities.ImageImportReport{Id: id}, nil
}
+
+func (ir *ImageEngine) Save(ctx context.Context, nameOrId string, tags []string, options entities.ImageSaveOptions) error {
+ newImage, err := ir.Libpod.ImageRuntime().NewFromLocal(nameOrId)
+ if err != nil {
+ return err
+ }
+ return newImage.Save(ctx, nameOrId, options.Format, options.Output, tags, options.Quiet, options.Compress)
+}