Created
December 26, 2022 14:18
-
-
Save otaviocorrea/9f1b66f59da234e3196a07ce7e204d30 to your computer and use it in GitHub Desktop.
Setup to docker on Linux (Tested on Linux Mint)
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
# instal dependencies | |
sudo apt update | |
sudo apt -y install apt-transport-https ca-certificates curl software-properties-common | |
# import docker key | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# add docker repository | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable" | |
sudo apt update | |
# install docker and docker-compose | |
sudo apt -y install docker-ce docker-compose | |
# add user to docker group | |
sudo usermod -aG docker $USER | |
# change permissions to docker socket | |
sudo chmod 666 /var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment