Browse code

Merge pull request #28454 from glensc/init-args

do not require custom build of tini

Alexander Morozov authored on 2017/01/21 03:03:58
Showing 2 changed files
... ...
@@ -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)
... ...
@@ -85,7 +85,7 @@ do
85 85
 			git clone https://github.com/krallin/tini.git "$GOPATH/tini"
86 86
 			cd "$GOPATH/tini"
87 87
 			git checkout -q "$TINI_COMMIT"
88
-			cmake -DMINIMAL=ON .
88
+			cmake .
89 89
 			make tini-static
90 90
 			cp tini-static /usr/local/bin/docker-init
91 91
 			;;