[meta-virtualization] [PATCH] docker: make docker-init a runtime dependency by default

Stefan Agner stefan at agner.ch
Fri Jun 28 05:14:06 PDT 2019


From: Stefan Agner <stefan.agner at toradex.com>

If docker run --init is used docker expects docker-init to be
present, if not Docker fails to start the container with the
following error:
  docker: Error response from daemon: exec: "docker-init": executable file not found in $PATH.

However, docker-init does not get deployed by default since commit
d19fda374317 ("docker: consolidate common depends/options"). Readd
docker-init through a PACKAGECONFIG RDEPENDS to make sure it gets
deployed by default again.

Signed-off-by: Stefan Agner <stefan.agner at toradex.com>
---
 recipes-containers/docker/docker.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/recipes-containers/docker/docker.inc b/recipes-containers/docker/docker.inc
index 168d296..eacaf7f 100644
--- a/recipes-containers/docker/docker.inc
+++ b/recipes-containers/docker/docker.inc
@@ -32,8 +32,9 @@ RDEPENDS_${PN} += "virtual/containerd virtual/runc"
 RRECOMMENDS_${PN} = "kernel-module-dm-thin-pool kernel-module-nf-nat"
 
 inherit pkgconfig
-PACKAGECONFIG ??= ""
+PACKAGECONFIG ??= "docker-init"
 PACKAGECONFIG[seccomp] = "seccomp,,libseccomp"
+PACKAGECONFIG[docker-init] = ",,,docker-init"
 
 inherit systemd update-rc.d
 
-- 
2.13.6



More information about the meta-virtualization mailing list