diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2022-04-23 07:05:59 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2022-04-23 08:03:36 -0400 |
commit | 13079abe3f7998f01d1b2e30dae3660cfb5a98c8 (patch) | |
tree | cc8c0c15b5d09358f4beb9e2c4bc6389604ecca3 /pkg/domain/infra/runtime_libpod.go | |
parent | f65f3320e1124c94db053c1f811487920ae2a70e (diff) | |
download | podman-13079abe3f7998f01d1b2e30dae3660cfb5a98c8.tar.gz podman-13079abe3f7998f01d1b2e30dae3660cfb5a98c8.tar.bz2 podman-13079abe3f7998f01d1b2e30dae3660cfb5a98c8.zip |
Add support for passing --volumepath
Fixes: https://github.com/containers/podman/issues/13860
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/domain/infra/runtime_libpod.go')
-rw-r--r-- | pkg/domain/infra/runtime_libpod.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/domain/infra/runtime_libpod.go b/pkg/domain/infra/runtime_libpod.go index 5fdc252e2..ac557e9de 100644 --- a/pkg/domain/infra/runtime_libpod.go +++ b/pkg/domain/infra/runtime_libpod.go @@ -209,6 +209,10 @@ func getRuntime(ctx context.Context, fs *flag.FlagSet, opts *engineOpts) (*libpo options = append(options, libpod.WithEventsLogger(cfg.Engine.EventsLogger)) } + if fs.Changed("volumepath") { + options = append(options, libpod.WithVolumePath(cfg.Engine.VolumePath)) + } + if fs.Changed("cgroup-manager") { options = append(options, libpod.WithCgroupManager(cfg.Engine.CgroupManager)) } else { |