set powershell entrypoint for windows containers

This commit is contained in:
Megan Marsh 2019-03-28 16:46:07 -07:00
parent a01091952d
commit 70150ffa0f
1 changed files with 3 additions and 0 deletions

View File

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