Skip to content

Instantly share code, notes, and snippets.

@ComradeCat24
Last active January 31, 2021 07:11
Show Gist options
  • Save ComradeCat24/6163f13d79197a20c049f50681c12efc to your computer and use it in GitHub Desktop.
Save ComradeCat24/6163f13d79197a20c049f50681c12efc to your computer and use it in GitHub Desktop.
Docker installation for linux mint 20 ulyana
#!/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
@ComradeCat24
Copy link
Author

#---INSTALL---
#1) chmod +x docker-install.sh
#2) ./docker-install.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment