Docker comes in two flavours: The Comunity Edition (CE) and the Enterprise Edition (EE). See this question for the differences. Just take Docker CE if you don't know which to take.
There are two ways of installing it (thank you, Katu and Suor!). The official docker way is a bit more recent.
(A) Official Ubuntu Repositories
$ sudo apt-get install docker.io
In the past this way was discouraged as the docker package was super outdated. The universe sources are fairly recent now.
The latest version can be found here. It was 18.06 in November 2018. This version is available in the sources from above, whereas the default Ubuntu package sources only contain Docker 1.5 (source). You can find changes in the docker release notes. Version 1.5 is so old that I could not find out how old it is.
Finaly download your debian src.
Go to https://download.docker.com/linux/ubuntu/dists/, choose your Ubuntu version, browse to pool/stable/ and choose amd64, armhf, ppc64el, or s390x. Download the .deb file for the Docker version you want to install.
Docker comes in two flavours: The Comunity Edition (CE) and the Enterprise Edition (EE). See this question for the differences. Just take Docker CE if you don't know which to take.
There are two ways of installing it (thank you, Katu and Suor!). The official docker way is a bit more recent.
(A) Official Ubuntu Repositories
In the past this way was discouraged as the docker package was super outdated. The universe sources are fairly recent now.
(B) Official Docker Way
The Ubuntu installation instructions list all you need in detail, but in most cases it boils down to:
(1) Set up the docker repository
(2) Install Docker CE
(3) Verify the installation
The latest version can be found here. It was 18.06 in November 2018. This version is available in the sources from above, whereas the default Ubuntu package sources only contain Docker 1.5 (source). You can find changes in the docker release notes. Version 1.5 is so old that I could not find out how old it is.
To install the Ubuntu repository version
Check the version with
You may still want to do the post-install steps. Thanks @wisbucky
Easiest way to install docker on Ubuntu using following command that you can get from the https://get.docker.com/
This script is meant for quick & easy install via:
or
For test builds (ie. release candidates):
or
For rc build with experimental feature:
or
To install the community edition, add the GPG key
Add the docker repository
To make sure, you're going to install docker from Docker repo,
Now install docker,
It would be running by default, but you can check the status
BTW, for Linux Mint (which is based on ubuntu), need to change the release name by hand, after adding the repository.
Sub steps:
sudo vi /etc/apt/sources.list.d/additional-repositories.list
Change
sarah
or other name, toxenial
.Change
tara
or other name, tobionic
.You can follow below steps to install docker-ce in Ubuntu -
install the dependencies first
add the GPG key for the official Docker repository to the system:
Add the Docker repository in sources.list.d to APT sources using below command -
verify if you are able to install Docker from Docker repository
Finally, install Docker CE package with below command
Voila, you have installed Docker-CE. You can verify installation by checking the version of docker-ce installed
For more detailed instructions, follow this tutorial
Debian installation.
lsb_release -a | grep Code
lscpu | grep Arch
Finaly download your debian src. Go to https://download.docker.com/linux/ubuntu/dists/, choose your Ubuntu version, browse to pool/stable/ and choose amd64, armhf, ppc64el, or s390x. Download the .deb file for the Docker version you want to install.
sudo dpkg -i /path/to/package.deb