Skip to content

Commit

Permalink
do not require custom build of tini
Browse files Browse the repository at this point in the history
krallin/tini#55 (comment)
krallin/tini#55 (comment)
moby#28037

Signed-off-by: Elan Ruusamäe <glen@delfi.ee>
  • Loading branch information
glensc committed Nov 15, 2016
1 parent 5f577bf commit d7df731
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion daemon/oci_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ func (daemon *Daemon) populateCommonSpec(s *specs.Spec, c *container.Container)
if c.HostConfig.PidMode.IsPrivate() {
if (c.HostConfig.Init != nil && *c.HostConfig.Init) ||
(c.HostConfig.Init == nil && daemon.configStore.Init) {
s.Process.Args = append([]string{"/dev/init", c.Path}, c.Args...)
s.Process.Args = append([]string{"/dev/init", "--", c.Path}, c.Args...)
var path string
if daemon.configStore.InitPath == "" && c.HostConfig.InitPath == "" {
path, err = exec.LookPath(DefaultInitBinary)
Expand Down
2 changes: 1 addition & 1 deletion hack/dockerfile/install-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ do
git clone https://github.com/krallin/tini.git "$GOPATH/tini"
cd "$GOPATH/tini"
git checkout -q "$TINI_COMMIT"
cmake -DMINIMAL=ON .
cmake .
make tini-static
cp tini-static /usr/local/bin/docker-init
;;
Expand Down

0 comments on commit d7df731

Please sign in to comment.