set powershell entrypoint for windows containers

pull/7444/head
Megan Marsh 7 years ago
parent a01091952d
commit 70150ffa0f

@ -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

Loading…
Cancel
Save