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