set powershell entrypoint for windows containers
This commit is contained in:
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…
Reference in New Issue