Merge pull request #2793 from lifubang/runexecflag

fix container cmd args may parsed as ctr args
This commit is contained in:
Michael Crosby
2018-12-04 11:05:51 -05:00
committed by GitHub
2 changed files with 8 additions and 6 deletions

View File

@@ -86,9 +86,10 @@ func parseMountFlag(m string) (specs.Mount, error) {
// Command runs a container
var Command = cli.Command{
Name: "run",
Usage: "run a container",
ArgsUsage: "[flags] Image|RootFS ID [COMMAND] [ARG...]",
Name: "run",
Usage: "run a container",
ArgsUsage: "[flags] Image|RootFS ID [COMMAND] [ARG...]",
SkipArgReorder: true,
Flags: append([]cli.Flag{
cli.BoolFlag{
Name: "rm",