diff --git a/rootless-install.sh b/rootless-install.sh index a15d3c07..9046f635 100755 --- a/rootless-install.sh +++ b/rootless-install.sh @@ -99,6 +99,11 @@ checks() { >&2 echo "Aborting because rootful Docker is running and accessible. Set FORCE_ROOTLESS_INSTALL=1 to ignore."; exit 1 fi + # Check if tun device is avaliable for rootless kit + if [ ! -e /dev/net/tun ] && [ -z "$FORCE_ROOTLESS_INSTALL" ]; then + >&2 echo "Aborting because /dev/net/tun is not avaliable. Set FORCE_ROOTLESS_INSTALL=1 to ignore."; exit 1 + fi + # Validate XDG_RUNTIME_DIR if [ ! -w "$XDG_RUNTIME_DIR" ]; then if [ -n "$SYSTEMD" ]; then