Installing Docker1- Update $ sudo apt update 2- Require $ sudo apt install apt-transport-https ca-certificates curl software-properties-common 3- Add GPG key § curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - 4- Add the repo $ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable" 5- Check source repo § apt-cache policy docker-ce 6- Install Docker: § sudo apt install docker-ce |
Installing Docker Compose
1- Download the 1.27.4 $ sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose 2- Next, set the correct permissions so that the docker-compose command is executable:** $ sudo chmod +x /usr/local/bin/docker-compose |
Cheatography
https://cheatography.com
Docker on Ubuntu 20.04 Cheat Sheet (DRAFT) by janico
Docker on Ubuntu 20.04
This is a draft cheat sheet. It is a work in progress and is not finished yet.