summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-08 08:31:29 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-04-08 08:33:34 -0400
commit4829136dabeb94635676dc55bb991aea4305aa3b (patch)
treeb2e61162caa02cb6932180591c76be251e3c5597 /cmd
parent522dcd604edb6630b06ce1e2184ef11c0ea889f0 (diff)
downloadpodman-4829136dabeb94635676dc55bb991aea4305aa3b.tar.gz
podman-4829136dabeb94635676dc55bb991aea4305aa3b.tar.bz2
podman-4829136dabeb94635676dc55bb991aea4305aa3b.zip
run/create were processing options after the image name
flags.SetInterspersed(false) Needs to be added to allow options to be used within the containers. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podmanV2/containers/create.go1
-rw-r--r--cmd/podmanV2/containers/run.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/cmd/podmanV2/containers/create.go b/cmd/podmanV2/containers/create.go
index fd5300966..63daf1702 100644
--- a/cmd/podmanV2/containers/create.go
+++ b/cmd/podmanV2/containers/create.go
@@ -40,6 +40,7 @@ func init() {
})
//common.GetCreateFlags(createCommand)
flags := createCommand.Flags()
+ flags.SetInterspersed(false)
flags.AddFlagSet(common.GetCreateFlags(&cliVals))
flags.AddFlagSet(common.GetNetFlags())
flags.SetNormalizeFunc(common.AliasFlags)
diff --git a/cmd/podmanV2/containers/run.go b/cmd/podmanV2/containers/run.go
index bd90aee2f..5c0069afc 100644
--- a/cmd/podmanV2/containers/run.go
+++ b/cmd/podmanV2/containers/run.go
@@ -46,6 +46,7 @@ func init() {
Command: runCommand,
})
flags := runCommand.Flags()
+ flags.SetInterspersed(false)
flags.AddFlagSet(common.GetCreateFlags(&cliVals))
flags.AddFlagSet(common.GetNetFlags())
flags.SetNormalizeFunc(common.AliasFlags)