From f2c645d68e2892ad1132ce014f51776be906940e Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Thu, 2 May 2013 20:50:28 -0700 Subject: [PATCH] Fix the command existance check Upstream-commit: b9ec03c21b8fdbc54fdd7a3cb86f3c555e91f989 Component: engine --- components/engine/runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/runtime.go b/components/engine/runtime.go index b246f74a5c..79a7170c7d 100644 --- a/components/engine/runtime.go +++ b/components/engine/runtime.go @@ -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") }