summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2022-04-23 07:05:59 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2022-04-23 08:03:36 -0400
commit13079abe3f7998f01d1b2e30dae3660cfb5a98c8 (patch)
treecc8c0c15b5d09358f4beb9e2c4bc6389604ecca3 /cmd
parentf65f3320e1124c94db053c1f811487920ae2a70e (diff)
downloadpodman-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 'cmd')
-rw-r--r--cmd/podman/root.go4
1 files changed, 4 insertions, 0 deletions
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",