From 70150ffa0fcd55413f636286c95ce21c406f1ad2 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 28 Mar 2019 16:46:07 -0700 Subject: [PATCH] set powershell entrypoint for windows containers --- builder/docker/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/builder/docker/config.go b/builder/docker/config.go index 684e88bd9..8b41589e0 100644 --- a/builder/docker/config.go +++ b/builder/docker/config.go @@ -75,6 +75,9 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) { // Defaults if len(c.RunCommand) == 0 { c.RunCommand = []string{"-d", "-i", "-t", "--entrypoint=/bin/sh", "--", "{{.Image}}"} + if c.WindowsContainer { + c.RunCommand = []string{"-d", "-i", "-t", "--entrypoint=powershell", "--", "{{.Image}}"} + } } // Default Pull if it wasn't set