Browse code

Fix the command existance check

Guillaume J. Charmes authored on 2013/05/03 12:50:28
Showing 1 changed files
... ...
@@ -127,7 +127,7 @@ func (runtime *Runtime) Create(config *Config) (*Container, error) {
127 127
 		runtime.mergeConfig(config, img.Config)
128 128
 	}
129 129
 
130
-	if config.Cmd == nil || len(config.Cmd) < 2 {
130
+	if config.Cmd == nil || len(config.Cmd) == 0 {
131 131
 		return nil, fmt.Errorf("No command specified")
132 132
 	}
133 133