diff --git a/contrib/dockerd-rootless-setuptool.sh b/contrib/dockerd-rootless-setuptool.sh index ed9b664ba9..4a9ae75bae 100755 --- a/contrib/dockerd-rootless-setuptool.sh +++ b/contrib/dockerd-rootless-setuptool.sh @@ -269,6 +269,13 @@ init() { # - sysctl: "net.ipv4.ip_unprivileged_port_start" # - external binary: slirp4netns # - external binary: fuse-overlayfs + + # check RootlessKit functionality. RootlessKit will print hints if something is still unsatisfied. + # (e.g., `kernel.apparmor_restrict_unprivileged_userns` constraint) + if ! rootlesskit true; then + ERROR "RootlessKit failed, see the error messages and https://rootlesscontaine.rs/getting-started/common/ ." + exit 1 + fi } # CLI subcommand: "check"