diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-06-30 05:33:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 05:33:21 -0400 |
commit | 78a3605018038d26a9e8868b6ed6ab01146be423 (patch) | |
tree | 253d9db10a45dbcb1baedd94715e93a8bdea27c8 /pkg/domain/infra/abi | |
parent | 0d8d805a76762276c62bd7260a39eb26e99722b4 (diff) | |
parent | 2243b6020330ea06abdb594db9c6c8ff429cfc5d (diff) | |
download | podman-78a3605018038d26a9e8868b6ed6ab01146be423.tar.gz podman-78a3605018038d26a9e8868b6ed6ab01146be423.tar.bz2 podman-78a3605018038d26a9e8868b6ed6ab01146be423.zip |
Merge pull request #10789 from flouthoc/system-reset-prune-external
reset: remove external containers on podman system reset
Diffstat (limited to 'pkg/domain/infra/abi')
-rw-r--r-- | pkg/domain/infra/abi/containers.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/containers.go b/pkg/domain/infra/abi/containers.go index e6dd19e63..47fa553ce 100644 --- a/pkg/domain/infra/abi/containers.go +++ b/pkg/domain/infra/abi/containers.go @@ -854,6 +854,10 @@ func (ic *ContainerEngine) ContainerList(ctx context.Context, options entities.C return ps.GetContainerLists(ic.Libpod, options) } +func (ic *ContainerEngine) ContainerListExternal(ctx context.Context) ([]entities.ListContainer, error) { + return ps.GetExternalContainerLists(ic.Libpod) +} + // ContainerDiff provides changes to given container func (ic *ContainerEngine) ContainerDiff(ctx context.Context, nameOrID string, opts entities.DiffOptions) (*entities.DiffReport, error) { if opts.Latest { |