diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-04-02 00:13:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 00:13:21 +0200 |
commit | 79f191cb5933ac0d3f64d123d8b8e6fec8e2a9c9 (patch) | |
tree | 055e000b03084fbd41cd7f9b6cf8c3c407f397c0 /pkg/domain/infra/abi/containers.go | |
parent | 0f357be5aeaa5dc651659cf0945a58780641e77d (diff) | |
parent | bb39051616fbce12b4cb3135a62c7747273ab0aa (diff) | |
download | podman-79f191cb5933ac0d3f64d123d8b8e6fec8e2a9c9.tar.gz podman-79f191cb5933ac0d3f64d123d8b8e6fec8e2a9c9.tar.bz2 podman-79f191cb5933ac0d3f64d123d8b8e6fec8e2a9c9.zip |
Merge pull request #5697 from baude/v2export
podmanv2 export
Diffstat (limited to 'pkg/domain/infra/abi/containers.go')
-rw-r--r-- | pkg/domain/infra/abi/containers.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go index 172c7d1a3..d4c5ac311 100644 --- a/pkg/domain/infra/abi/containers.go +++ b/pkg/domain/infra/abi/containers.go @@ -325,3 +325,11 @@ func (ic *ContainerEngine) ContainerCommit(ctx context.Context, nameOrId string, } return &entities.CommitReport{Id: newImage.ID()}, nil } + +func (ic *ContainerEngine) ContainerExport(ctx context.Context, nameOrId string, options entities.ContainerExportOptions) error { + ctr, err := ic.Libpod.LookupContainer(nameOrId) + if err != nil { + return err + } + return ctr.Export(options.Output) +} |