diff --git a/builder/evaluator.go b/builder/evaluator.go index 6bcd2194c2..bc4e2b5bd3 100644 --- a/builder/evaluator.go +++ b/builder/evaluator.go @@ -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 {