diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-05 20:49:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 20:49:17 +0200 |
commit | 864aec8bb011a7a42cf0a2faca39f6e27118b805 (patch) | |
tree | 788d16fa62d44244150cab2105ac5fe937cd3c09 /pkg/domain/infra/runtime_proxy.go | |
parent | fb6eca50ba9e2dc652da0c33c72db70ab9da85e9 (diff) | |
parent | 25312bb5b4e2bd4e122703006fc85bbf080e5e7c (diff) | |
download | podman-864aec8bb011a7a42cf0a2faca39f6e27118b805.tar.gz podman-864aec8bb011a7a42cf0a2faca39f6e27118b805.tar.bz2 podman-864aec8bb011a7a42cf0a2faca39f6e27118b805.zip |
Merge pull request #6081 from baude/v2system
v2 system subcommand
Diffstat (limited to 'pkg/domain/infra/runtime_proxy.go')
-rw-r--r-- | pkg/domain/infra/runtime_proxy.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/domain/infra/runtime_proxy.go b/pkg/domain/infra/runtime_proxy.go index 41193fd89..e7002e20f 100644 --- a/pkg/domain/infra/runtime_proxy.go +++ b/pkg/domain/infra/runtime_proxy.go @@ -19,3 +19,11 @@ func NewLibpodRuntime(flags *flag.FlagSet, opts *entities.PodmanConfig) (entitie } return &abi.ContainerEngine{Libpod: r}, nil } + +func NewLibpodImageRuntime(flags *flag.FlagSet, opts *entities.PodmanConfig) (entities.ImageEngine, error) { + r, err := GetRuntime(context.Background(), flags, opts) + if err != nil { + return nil, err + } + return &abi.ImageEngine{Libpod: r}, nil +} |