Skip to content

Commit d7df731

Browse files
committed
do not require custom build of tini
krallin/tini#55 (comment) krallin/tini#55 (comment) moby#28037 Signed-off-by: Elan Ruusamäe <[email protected]>
1 parent 5f577bf commit d7df731

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
@@ -593,7 +593,7 @@ func (daemon *Daemon) populateCommonSpec(s *specs.Spec, c *container.Container)
593593
if c.HostConfig.PidMode.IsPrivate() {
594594
if (c.HostConfig.Init != nil && *c.HostConfig.Init) ||
595595
(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...)
597597
var path string
598598
if daemon.configStore.InitPath == "" && c.HostConfig.InitPath == "" {
599599
path, err = exec.LookPath(DefaultInitBinary)

hack/dockerfile/install-binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ do
7777
git clone https://github.com/krallin/tini.git "$GOPATH/tini"
7878
cd "$GOPATH/tini"
7979
git checkout -q "$TINI_COMMIT"
80-
cmake -DMINIMAL=ON .
80+
cmake .
8181
make tini-static
8282
cp tini-static /usr/local/bin/docker-init
8383
;;

0 commit comments

Comments
 (0)