mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix run no parameter
This commit is contained in:
parent
59a6316f5e
commit
4079411375
4 changed files with 30 additions and 34 deletions
|
@ -1080,10 +1080,6 @@ func CmdRun(args ...string) error {
|
|||
cmd.Usage()
|
||||
return nil
|
||||
}
|
||||
if len(config.Cmd) == 0 {
|
||||
cmd.Usage()
|
||||
return nil
|
||||
}
|
||||
|
||||
//create the container
|
||||
body, statusCode, err := call("POST", "/containers", *config)
|
||||
|
|
Loading…
Add table
Reference in a new issue