I'm trying to install Docker on a Ubuntu 64 machine following the official installation guide.
Sadly Ubuntu seems it is not able to locate the docker-ce
package. Any idea to fix it or at least to track what is happening ?
Here some details for you…
$ uname --all; sudo grep docker /etc/apt/sources.list; sudo apt-get install docker-ce
Linux ubuntu 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable.
# deb-src [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-ce
Best Answer
Ubuntu 21.04 (hirsute)
Ubuntu 20.10 (Groovy)
Ubuntu 20.04 (Focal)
Ubuntu 19.10 (Eoan)
Ubuntu 19.04 (Disco)
Ubuntu 18.10 (Cosmic)
Ubuntu 18.04 (bionic)
Ubuntu 17.10
docker-ce
package is available on the official docker (Ubutu Artful) repository , to install it use the following commands :Ubuntu 16.04
You can install
docker-ce
on Ubuntu as follows:Run the following:
sample output:
Install
docker-ce
:For Ubuntu 16.04 you need to run
sudo apt update
. For Ubuntu 18.04 and higher,add-apt-repository
will executeapt update
automatically:To check the available Ubuntu codenames:
Docker , OS requirements