Installing manually
source: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#Make sure we are up to date
sudo apt update && sudo apt upgrade -y
#Install the Proxmox quest agent.
#Comment out if not using Proxmox
sudo apt -y install qemu-guest-agent
sudo systemctl enable qemu-guest-agent
#Install dependencies and repos
sudo apt install apt-transport-https ca-certificates curl software-properties-common -y
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
#Install Docker itself
sudo apt install docker-ce -y
sudo docker version
Installing Docker on Your System with the Universal Installation Script
source: https://docs.docker.com/engine/install/ubuntu/#install-using-the-convenience-script
Docker provides a convenience script at https://get.docker.com/ to install Docker into development environments non-interactively. The convenience script isn’t recommended for production environments, but it’s useful for creating a provisioning script tailored to your needs.
1
2
curl -fsSL https://get.docker.com -o get-docker.sh
DRY_RUN=1 sudo sh ./get-docker.sh