docker: add postinst message

This commit is contained in:
Frederico F. de Oliveira 2021-01-24 05:57:28 +00:00 committed by Yaksh Bariya
parent f52829a9ff
commit 4c3c76b9ef
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
1 changed files with 13 additions and 0 deletions

View File

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