From 4829136dabeb94635676dc55bb991aea4305aa3b Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 8 Apr 2020 08:31:29 -0400 Subject: 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 --- cmd/podmanV2/containers/create.go | 1 + cmd/podmanV2/containers/run.go | 1 + 2 files changed, 2 insertions(+) (limited to 'cmd/podmanV2') 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) -- cgit v1.2.3-54-g00ecf