mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
builder: use len() > 0 instead of != nil
Signed-off-by: Tibor Vass <teabee89@gmail.com>
This commit is contained in:
parent
39343b8618
commit
3183af8b19
1 changed files with 1 additions and 1 deletions
|
@ -532,7 +532,7 @@ func (b *Builder) create() (*daemon.Container, error) {
|
|||
b.TmpContainers[c.ID] = struct{}{}
|
||||
fmt.Fprintf(b.OutStream, " ---> Running in %s\n", utils.TruncateID(c.ID))
|
||||
|
||||
if config.Cmd != nil {
|
||||
if len(config.Cmd) > 0 {
|
||||
// override the entry point that may have been picked up from the base image
|
||||
c.Path = config.Cmd[0]
|
||||
c.Args = config.Cmd[1:]
|
||||
|
|
Loading…
Reference in a new issue