summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-07-20 14:18:03 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-07-20 16:36:10 -0400
commitdb2f474284b18b4a2d9c3671278500c92a9c19d7 (patch)
tree8abefd02a00c90e1bb2822d013dc0f2f1e2751d9 /cmd/podman/common
parent389c9b8dca942fb4977823dd504d3d351cb92acd (diff)
downloadpodman-db2f474284b18b4a2d9c3671278500c92a9c19d7.tar.gz
podman-db2f474284b18b4a2d9c3671278500c92a9c19d7.tar.bz2
podman-db2f474284b18b4a2d9c3671278500c92a9c19d7.zip
Drop podman create --storage-opt container flag
The global flag will work in either location, and this flag just breaks users expectations, and is basically a noop. Also fix global storage-opt so that podman-remote can use it. [NO TESTS NEEDED] Since it would be difficult to test in ci/cd. Fixes: https://github.com/containers/podman/issues/10264 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/create.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/cmd/podman/common/create.go b/cmd/podman/common/create.go
index 64d1956eb..96414add4 100644
--- a/cmd/podman/common/create.go
+++ b/cmd/podman/common/create.go
@@ -655,15 +655,6 @@ func DefineCreateFlags(cmd *cobra.Command, cf *ContainerCLIOpts) {
)
_ = cmd.RegisterFlagCompletionFunc(stopTimeoutFlagName, completion.AutocompleteNone)
- storageOptFlagName := "storage-opt"
- createFlags.StringSliceVar(
- &cf.StorageOpt,
- storageOptFlagName, []string{},
- "Storage driver options per container",
- )
- //FIXME: What should we suggest here? The flag is not in the man page.
- _ = cmd.RegisterFlagCompletionFunc(storageOptFlagName, completion.AutocompleteNone)
-
subgidnameFlagName := "subgidname"
createFlags.StringVar(
&cf.SubUIDName,