Last active
January 31, 2021 07:11
-
-
Save ComradeCat24/6163f13d79197a20c049f50681c12efc to your computer and use it in GitHub Desktop.
Docker installation for linux mint 20 ulyana
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 | |
sudo apt-get update | |
echo "# install dependencies" | |
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common | |
echo "# add the gpg key for docker" | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
echo "# add the repository in the Linux mint 20" | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable" | |
sudo apt-get update | |
echo "# install docker e docker-compose" | |
sudo apt install docker-ce docker-compose | |
echo "# add the user system to sudo group, no sudo command" | |
sudo usermod -aG docker $USER | |
echo "# prints docker version =)" | |
docker --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#---INSTALL---
#1) chmod +x docker-install.sh
#2) ./docker-install.sh