From a6af04417e405573dc3d48a16fa8667f66bf3b80 Mon Sep 17 00:00:00 2001 From: Ali Rizvi-Santiago Date: Mon, 10 Dec 2018 15:07:50 -0600 Subject: [PATCH] Moved the entrypoint argument for the docker builder in front of the image so it's passed correctly as an argument. --- builder/docker/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/docker/config.go b/builder/docker/config.go index 4b1d22240..ef2d52a63 100644 --- a/builder/docker/config.go +++ b/builder/docker/config.go @@ -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