https://github.com/krallin/tini/issues/55#issuecomment-260507562
https://github.com/krallin/tini/issues/55#issuecomment-260538243
https://github.com/docker/docker/pull/28037
Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
... | ... |
@@ -593,7 +593,7 @@ func (daemon *Daemon) populateCommonSpec(s *specs.Spec, c *container.Container) |
593 | 593 |
if c.HostConfig.PidMode.IsPrivate() { |
594 | 594 |
if (c.HostConfig.Init != nil && *c.HostConfig.Init) || |
595 | 595 |
(c.HostConfig.Init == nil && daemon.configStore.Init) { |
596 |
- s.Process.Args = append([]string{"/dev/init", c.Path}, c.Args...) |
|
596 |
+ s.Process.Args = append([]string{"/dev/init", "--", c.Path}, c.Args...) |
|
597 | 597 |
var path string |
598 | 598 |
if daemon.configStore.InitPath == "" && c.HostConfig.InitPath == "" { |
599 | 599 |
path, err = exec.LookPath(DefaultInitBinary) |