Merge pull request #7091 from arizvisa/GH-6920

Proper fix to #6920 which ensures that entrypoint and arguments get passed to docker, not the image.
pull/7094/head
Megan Marsh 7 years ago committed by GitHub
commit d367c1ba8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -73,7 +73,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
// Defaults
if len(c.RunCommand) == 0 {
c.RunCommand = []string{"-d", "-i", "-t", "{{.Image}}", "--entrypoint=/bin/sh"}
c.RunCommand = []string{"-d", "-i", "-t", "--entrypoint=/bin/sh", "--", "{{.Image}}"}
}
// Default Pull if it wasn't set

Loading…
Cancel
Save