Fix the command existance check

Upstream-commit: b9ec03c21b8fdbc54fdd7a3cb86f3c555e91f989
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-05-02 20:50:28 -07:00
parent e6dd1bf4aa
commit f2c645d68e
+1 -1
View File
@@ -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")
}