Last active
October 3, 2020 22:37
-
-
Save smartass08/97b4a579c10bf786d367d43c4ace0ab6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Add your username here | |
user=smartass08 | |
#Adds your uid's to subuid and subgid | |
sudo touch /etc/subuid && sudo touch /etc/subgid | |
uid=$(id -u $user) | |
sudo usermod -v $((uid+200000))-$((uid+200000+65535)) -w $((uid+200000))-$((uid+200000+65535)) $user | |
#Enable unprivileged namespaces in your kernel | |
sudo sysctl kernel.unprivileged_userns_clone=1 | |
sudo sysctl --system | |
#Install docker rootless | |
curl -fsSL https://get.docker.com/rootless | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
systemctl --user [start | status | stop] docker.service