Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 50a72c7

Browse files
authored
Merge pull request moby#28454 from glensc/init-args
do not require custom build of tini
2 parents ae99820 + d7df731 commit 50a72c7

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

daemon/oci_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ func (daemon *Daemon) populateCommonSpec(s *specs.Spec, c *container.Container)
581581
if c.HostConfig.PidMode.IsPrivate() {
582582
if (c.HostConfig.Init != nil && *c.HostConfig.Init) ||
583583
(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...)
585585
var path string
586586
if daemon.configStore.InitPath == "" && c.HostConfig.InitPath == "" {
587587
path, err = exec.LookPath(DefaultInitBinary)

hack/dockerfile/install-binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ do
8585
git clone https://github.com/krallin/tini.git "$GOPATH/tini"
8686
cd "$GOPATH/tini"
8787
git checkout -q "$TINI_COMMIT"
88-
cmake -DMINIMAL=ON .
88+
cmake .
8989
make tini-static
9090
cp tini-static /usr/local/bin/docker-init
9191
;;

0 commit comments

Comments
 (0)