Browse code

do not require custom build of tini

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>

Elan Ruusamäe authored on 2016/11/16 07:07:13
Showing 2 changed files
... ...
@@ -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)
... ...
@@ -77,7 +77,7 @@ do
77 77
 			git clone https://github.com/krallin/tini.git "$GOPATH/tini"
78 78
 			cd "$GOPATH/tini"
79 79
 			git checkout -q "$TINI_COMMIT"
80
-			cmake -DMINIMAL=ON .
80
+			cmake .
81 81
 			make tini-static
82 82
 			cp tini-static /usr/local/bin/docker-init
83 83
 			;;