mirror of
https://github.com/docker/cli.git
synced 2026-01-18 08:21:31 +03:00
Merge pull request #520 from dotcloud/519-no_command_specified-fix
- runtime: Fix the command existance check Upstream-commit: c3a5dd76cfddfc8938618bc2ad1409e04c4fa867 Component: engine
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user