builder: Appropriately initialize the Cmd in runconfig.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Upstream-commit: 1e93639aed80588e70e65a850b7c7843d381d3dd
Component: engine
This commit is contained in:
Erik Hollensbe
2014-09-22 23:10:05 -07:00
parent f783617844
commit 62b6528cbb

View File

@ -150,7 +150,7 @@ func (b *Builder) Run(context io.Reader) (string, error) {
b.dockerfile = ast
// some initializations that would not have been supplied by the caller.
b.Config = &runconfig.Config{Entrypoint: []string{}, Cmd: []string{"/bin/sh", "-c"}}
b.Config = &runconfig.Config{Entrypoint: []string{}, Cmd: nil}
b.TmpContainers = map[string]struct{}{}
for i, n := range b.dockerfile.Children {