From 914be51ef0d82a39aa50de06faa5822353ca55d8 Mon Sep 17 00:00:00 2001 From: "Fiona Klute (WIWA)" Date: Thu, 10 Oct 2024 15:29:12 +0200 Subject: [PATCH] package/docker-engine: add optional dependency on tini To provide an init process for containers if requested e.g. with "docker run --init", Docker relies on tini to provide the init binary. package/tini already provides the required /usr/libexec/docker/docker-init symlink, the new option just selects tini if enabled to prevent confusion over why docker-init is missing. Signed-off-by: Fiona Klute (WIWA) Signed-off-by: Thomas Petazzoni --- package/docker-engine/Config.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package/docker-engine/Config.in b/package/docker-engine/Config.in index 49a002a647..e03ecceeff 100644 --- a/package/docker-engine/Config.in +++ b/package/docker-engine/Config.in @@ -48,6 +48,17 @@ config BR2_PACKAGE_DOCKER_ENGINE_DRIVER_VFS help Build the vfs filesystem driver for Docker. +config BR2_PACKAGE_DOCKER_ENGINE_DOCKER_INIT + bool "support docker-init" + select BR2_PACKAGE_TINI # runtime + help + Support providing a minimal init process for containers, + using tini. Required to use "docker run --init". + + This does not change the Docker engine build, the + docker-init symlink is provided by the tini package + itself. This option only adds the dependency. + endif comment "docker-engine needs a glibc or musl toolchain w/ threads, headers >= 3.17"