Skip to content

Instantly share code, notes, and snippets.

@dazeb
Created May 16, 2021 21:20
Show Gist options
  • Save dazeb/51008cf2b3fcde0245dcdd95471c48d0 to your computer and use it in GitHub Desktop.
Save dazeb/51008cf2b3fcde0245dcdd95471c48d0 to your computer and use it in GitHub Desktop.
## **Docker Install - Ubuntu 20.04**
16/05/2021 22:15
```
start
##Install prerequisites
sudo apt install apt-transport-https ca-certificates curl software-properties-common
##install Docker GPG keys
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
##Add to repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
##Update APT
sudo apt update
##Install Docker
sudo apt install docker-ce
##Add current user to docker group
sudo usermod -aG docker ${USER}
```
**2 Line Install**
```
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment