mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix the command existance check
This commit is contained in:
parent
64d7bc442d
commit
b9ec03c21b
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ func (runtime *Runtime) Create(config *Config) (*Container, error) {
|
|||
runtime.mergeConfig(config, img.Config)
|
||||
}
|
||||
|
||||
if config.Cmd == nil || len(config.Cmd) < 2 {
|
||||
if config.Cmd == nil || len(config.Cmd) == 0 {
|
||||
return nil, fmt.Errorf("No command specified")
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue