From 4c3c76b9ef60a6d0a42775193a6012aa218be2e1 Mon Sep 17 00:00:00 2001 From: "Frederico F. de Oliveira" Date: Sun, 24 Jan 2021 05:57:28 +0000 Subject: [PATCH] docker: add postinst message --- root-packages/docker/build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/root-packages/docker/build.sh b/root-packages/docker/build.sh index 14fb3a02e..0425a6867 100644 --- a/root-packages/docker/build.sh +++ b/root-packages/docker/build.sh @@ -122,3 +122,16 @@ termux_step_make_install() { install -Dm 0700 ${TERMUX_PKG_BUILDER_DIR}/dockerd ${TERMUX_PREFIX}/bin/dockerd install -Dm 600 ${TERMUX_PKG_BUILDER_DIR}/daemon.json ${TERMUX_PREFIX}/etc/docker/daemon.json } + +termux_step_create_debscripts() { + cat <<- EOF > postinst + #!${TERMUX_PREFIX}/bin/sh + + echo 'NOTE: Docker requires the kernel to support' + echo 'device cgroups, namespace, VETH, among others.' + echo + echo 'To check a full list of features needed, run the script:' + echo 'https://github.com/moby/moby/blob/master/contrib/check-config.sh' + EOF +} +