Kaynağa Gözat

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

- runtime: Fix the command existance check
Guillaume J. Charmes 12 yıl önce
ebeveyn
işleme
c3a5dd76cf
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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")
 	}