Преглед изворни кода

builder: Appropriately initialize the Cmd in runconfig.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
Erik Hollensbe пре 10 година
родитељ
комит
1e93639aed
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      builder/evaluator.go

+ 1 - 1
builder/evaluator.go

@@ -150,7 +150,7 @@ func (b *Builder) Run(context io.Reader) (string, error) {
 	b.dockerfile = ast
 	b.dockerfile = ast
 
 
 	// some initializations that would not have been supplied by the caller.
 	// 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{}{}
 	b.TmpContainers = map[string]struct{}{}
 
 
 	for i, n := range b.dockerfile.Children {
 	for i, n := range b.dockerfile.Children {