There a e number of tutorials out there for 18.04 and some for 20.04 even.
All of them I have found so far direct you to use the docker repo rather than the Ubuntu repo for docker and docker components/tools.
I have tried both methods – but the installation of “docker-ce” fails when using either docker source.
If it doesn’t even exist in either repo, is it really a requirement?
Here is the results of the attempt using the docker repo:
`#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg –dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
File ‘/usr/share/keyrings/docker-archive-keyring.gpg’ exists. Overwrite? (y/N) y
apt install docker-ce docker-ce-cli containerd.io
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package docker-ce is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘docker-ce’ has no installation candidate
E: Unable to locate package docker-ce-cli
E: Unable to locate package containerd.io
E: Couldn’t find any package by glob ‘containerd.io’
Edit: Code tags don’t seem to be cooperating today 🙁