do not require custom build of tini
| ... | ... |
@@ -581,7 +581,7 @@ func (daemon *Daemon) populateCommonSpec(s *specs.Spec, c *container.Container) |
| 581 | 581 |
if c.HostConfig.PidMode.IsPrivate() {
|
| 582 | 582 |
if (c.HostConfig.Init != nil && *c.HostConfig.Init) || |
| 583 | 583 |
(c.HostConfig.Init == nil && daemon.configStore.Init) {
|
| 584 |
- s.Process.Args = append([]string{"/dev/init", c.Path}, c.Args...)
|
|
| 584 |
+ s.Process.Args = append([]string{"/dev/init", "--", c.Path}, c.Args...)
|
|
| 585 | 585 |
var path string |
| 586 | 586 |
if daemon.configStore.InitPath == "" && c.HostConfig.InitPath == "" {
|
| 587 | 587 |
path, err = exec.LookPath(DefaultInitBinary) |