Merge pull request #23338 from vdemeester/23253-fix-create-run
Fix create command flags Upstream-commit: 8cd6977f98f4f51ee110a9795d1d93b9ec4b166c Component: engine
This commit is contained in:
@@ -46,6 +46,8 @@ func NewCreateCommand(dockerCli *client.DockerCli) *cobra.Command {
|
||||
cmd.SetFlagErrorFunc(flagErrorFunc)
|
||||
|
||||
flags := cmd.Flags()
|
||||
flags.SetInterspersed(false)
|
||||
|
||||
flags.StringVar(&opts.name, "name", "", "Assign a name to the container")
|
||||
|
||||
// Add an explicit help that doesn't have a `-h` to prevent the conflict
|
||||
|
||||
Reference in New Issue
Block a user