Reference site https://docs.docker.com/engine/install/ubuntu/
Set up the repository
sudo apt update && sudo apt upgrade
sudo apt install \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo apt-key fingerprint 0EBFCD88
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
Docker engine installation
sudo apt update
sudo apt install docker-ce docker-ce-cli containerd.io
apt-cache madison docker-ce
sudo apt install docker-ce=5:19.03.13~3-0~ubuntu-focal docker-ce-cli=5:19.03.13~3-0~ubuntu-focal containerd.io
Confirmation of successful installation
sudo docker run hello-world
sudo apt-get purge docker-ce docker-ce-cli containerd.io
sudo rm -rf /var/lib/docker
Recommended Posts