From 13079abe3f7998f01d1b2e30dae3660cfb5a98c8 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 23 Apr 2022 07:05:59 -0400 Subject: Add support for passing --volumepath Fixes: https://github.com/containers/podman/issues/13860 Signed-off-by: Daniel J Walsh --- cmd/podman/root.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd/podman/root.go') diff --git a/cmd/podman/root.go b/cmd/podman/root.go index 500a475bd..9b1aa778b 100644 --- a/cmd/podman/root.go +++ b/cmd/podman/root.go @@ -429,6 +429,10 @@ func rootFlags(cmd *cobra.Command, opts *entities.PodmanConfig) { pFlags.BoolVar(&opts.Trace, "trace", false, "Enable opentracing output (default false)") + volumePathFlagName := "volumepath" + pFlags.StringVar(&opts.Engine.VolumePath, volumePathFlagName, "", "Path to the volume directory in which volume data is stored") + _ = cmd.RegisterFlagCompletionFunc(volumePathFlagName, completion.AutocompleteDefault) + // Hide these flags for both ABI and Tunneling for _, f := range []string{ "cpu-profile", -- cgit v1.2.3-54-g00ecf