summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-04-25 09:35:03 -0400
committerGitHub <noreply@github.com>2022-04-25 09:35:03 -0400
commita9f8fb9cea7763e45e2e848a62df345d79893ef0 (patch)
treef6826812a0cf2d27d66fe963893d31d04434c57a /cmd
parentba6356280a86531d3cda7016859aef98bb3d8272 (diff)
parent13079abe3f7998f01d1b2e30dae3660cfb5a98c8 (diff)
downloadpodman-a9f8fb9cea7763e45e2e848a62df345d79893ef0.tar.gz
podman-a9f8fb9cea7763e45e2e848a62df345d79893ef0.tar.bz2
podman-a9f8fb9cea7763e45e2e848a62df345d79893ef0.zip
Merge pull request #13981 from rhatdan/volume
Add support for passing --volumepath
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",