I would like to build and run Docker containers on Ubuntu 16.04 LTS. How do I install Docker?
Docker – How to Install Docker on Ubuntu 16.04 LTS
16.04docker
16.04docker
I would like to build and run Docker containers on Ubuntu 16.04 LTS. How do I install Docker?
Best Answer
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.