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) <fiona.klute@gmx.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fiona Klute (WIWA)
2024-10-10 15:29:12 +02:00
committed by Thomas Petazzoni
parent 7e6f761878
commit 914be51ef0

View File

@@ -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"