Skip to content

Instantly share code, notes, and snippets.

@quangthe
Created October 14, 2020 14:51
Show Gist options
  • Save quangthe/68b76995f040b5d121a94aadfba0701e to your computer and use it in GitHub Desktop.
Save quangthe/68b76995f040b5d121a94aadfba0701e to your computer and use it in GitHub Desktop.
Install Docker on Linux Mint 20
#!/bin/bash
sudo apt-get update
# install dependencies
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
# add the gpg key for docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-get update
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(. /etc/os-release; echo "$UBUNTU_CODENAME") stable"
sudo apt install docker-ce docker-compose
# add the user system to sudo group, so that we can run docker without sudo
sudo usermod -aG docker $USER
docker --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment