Last active
July 26, 2023 12:20
-
-
Save guilhermelinhares/9a6fac8b02569fa174e17a3e1de834e3 to your computer and use it in GitHub Desktop.
Install Docker + Docker Compose rootless | Ubuntu | With Fix EACCES var/run/docker.sock Vscode
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
apt-get update -y | |
#Init install docker | |
curl -fsSL https://get.docker.com | bash | |
newgrp docker | |
sudo usermod -aG docker $USER | |
sudo gpasswd -a $USER docker | |
#Optional -> In case you wanted root permission too | |
sudo usermod -aG docker root | |
#Init install and configure dockerd-rootless-setuptool.sh | |
sudo apt-get install -y uidmap | |
sudo systemctl disable --now docker.service docker.socket | |
dockerd-rootless-setuptool.sh install | |
systemctl --user start docker | |
systemctl --user enable docker | |
sudo loginctl enable-linger $(whoami) | |
#Init Install Docker-Composer | |
sudo apt-get install docker-compose-plugin | |
#Fix Error:connect EACCES /var/run/docker.sock in VSCODE if after all the steps this error persists run : | |
#With this command you can assist RW permission for Other user | |
sudo chmod o+rw /var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment