diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-08 08:31:29 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-08 08:33:34 -0400 |
commit | 4829136dabeb94635676dc55bb991aea4305aa3b (patch) | |
tree | b2e61162caa02cb6932180591c76be251e3c5597 /cmd/podmanV2 | |
parent | 522dcd604edb6630b06ce1e2184ef11c0ea889f0 (diff) | |
download | podman-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/podmanV2')
-rw-r--r-- | cmd/podmanV2/containers/create.go | 1 | ||||
-rw-r--r-- | cmd/podmanV2/containers/run.go | 1 |
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) |