mirror of
https://github.com/alvinlollo/Single-install-script.git
synced 2026-06-15 03:04:26 +10:00
Added Docker rootless
This commit is contained in:
+9
-1
@@ -17,7 +17,7 @@ set -eux pipefail
|
|||||||
|
|
||||||
# Install prerequisites
|
# Install prerequisites
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y git zsh curl git build-essential whiptail
|
sudo apt install -y git zsh curl git build-essential whiptail uidmap
|
||||||
sudo apt full-upgrade -y
|
sudo apt full-upgrade -y
|
||||||
|
|
||||||
# Do not print commands
|
# Do not print commands
|
||||||
@@ -76,6 +76,13 @@ curl -fsSL https://get.docker.com | sh
|
|||||||
# Fail on any command.
|
# Fail on any command.
|
||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
|
# Install rootless mode
|
||||||
|
sudo sh -eux <<EOF
|
||||||
|
# Install newuidmap & newgidmap binaries
|
||||||
|
apt-get install -y uidmap
|
||||||
|
EOF
|
||||||
|
dockerd-rootless-setuptool.sh install
|
||||||
|
|
||||||
# Do not print commands
|
# Do not print commands
|
||||||
set +x
|
set +x
|
||||||
echo '
|
echo '
|
||||||
@@ -94,3 +101,4 @@ set +x
|
|||||||
|
|
||||||
# Done message :)
|
# Done message :)
|
||||||
echo "Done installing please star my repo: https://github.com/alvinlollo/Single-install-script"
|
echo "Done installing please star my repo: https://github.com/alvinlollo/Single-install-script"
|
||||||
|
echo "Reboot reccommended, run zsh a few times to fix configurations"
|
||||||
|
|||||||
Reference in New Issue
Block a user