Ubuntu – How to install docker community on Ubuntu 20.04 LTS


When I followed the community docks I came across the following issue:

 sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
>    $(lsb_release -cs) \
>    stable"
[sudo] password for yogesh: 
Hit:1 https://download.docker.com/linux/ubuntu bionic InRelease
Get:2 http://in.archive.ubuntu.com/ubuntu focal InRelease [265 kB]             
Ign:3 http://dl.google.com/linux/chrome/deb stable InRelease                   
Ign:4 https://download.docker.com/linux/ubuntu focal InRelease                 
Hit:5 http://security.ubuntu.com/ubuntu focal-security InRelease               
Hit:6 http://packages.microsoft.com/repos/vscode stable InRelease              
Err:7 https://download.docker.com/linux/ubuntu focal Release                   
  404  Not Found [IP: 443]
Hit:8 http://dl.google.com/linux/chrome/deb stable Release                     
Hit:10 http://in.archive.ubuntu.com/ubuntu focal-updates InRelease
Hit:11 http://in.archive.ubuntu.com/ubuntu focal-backports InRelease
Reading package lists... Done
E: The repository 'https://download.docker.com/linux/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

Best Answer

Update: As of 3 AM on May 15, the official Docker repository is available for Ubuntu Focal, so you can follow the installation guide on your Ubuntu to get Docker up and running.

Another option is to install Ubuntu-provided version of Docker:

sudo apt install docker.io

Long ago there were significant backlashes against this because the package docker.io from upstream (Debian) was too old - this is no longer the case. For Focal, docker.io is currently (Apr 24, 2020) at 19.03.8-0ubuntu1, which is satisfactorily new for the majority of Docker workloads.

Don't install docker by mistake - it used to be the system tray application, which has since been replaced by gnome-shell-extension-ubuntu-dock. The docker package can be safely removed had you installed it accidentally.

Related Question