浏览代码

Merge pull request #520 from dotcloud/519-no_command_specified-fix

- runtime: Fix the command existance check
Guillaume J. Charmes 12 年之前
父节点
当前提交
c3a5dd76cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      runtime.go

+ 1 - 1
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")
 	}