gnu: docker: Replace tini by tini-static.

The dynamically linked tini could fail in some environments, causing 'docker
run' to exit with the following unhelpful error message:

  standard_init_linux.go:219: exec user process caused: no such file or
  directory

Use the statically linked tini binary instead, which should work everywhere.

* gnu/packages/docker.scm (docker)[phases]{patch-paths}: Replace 'tini' by
'tini-static'.
This commit is contained in:
Maxim Cournoyer 2021-06-09 23:24:05 -04:00
parent 352f23f71c
commit e35383a76f
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -382,12 +382,12 @@ (define-public docker
(("DefaultInitBinary = .*")
(string-append "DefaultInitBinary = \""
(assoc-ref inputs "tini")
"/bin/tini\"\n")))
"/bin/tini-static\"\n")))
(substitute* "daemon/config/config_common_unix_test.go"
(("expectedInitPath: \"docker-init\"")
(string-append "expectedInitPath: \""
(assoc-ref inputs "tini")
"/bin/tini\"")))
"/bin/tini-static\"")))
(substitute* "vendor/github.com/moby/buildkit/executor/runcexecutor/executor.go"
(("var defaultCommandCandidates = .*")
(string-append "var defaultCommandCandidates = []string{\""