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.

(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

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

(2) Install Docker CE

sudo apt-get update
sudo apt-get install docker-ce

(3) Verify the installation

sudo docker run hello-world

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.

Answer from Martin Thoma on askubuntu.com
Top answer
1 of 7
92

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.

(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

sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

(2) Install Docker CE

sudo apt-get update
sudo apt-get install docker-ce

(3) Verify the installation

sudo docker run hello-world

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.

2 of 7
29

To install the Ubuntu repository version

sudo apt install docker.io

Check the version with

docker --version

You may still want to do the post-install steps. Thanks @wisbucky

🌐
Docker
docs.docker.com › manuals › docker engine › install › install docker engine on ubuntu
Install Docker Engine on Ubuntu | Docker Docs
April 23, 2026 - Jumpstart your client-side server applications with Docker Engine on Ubuntu. This guide details prerequisites and multiple methods to install Docker Engine on Ubuntu.
Discussions

Installing Docker under Ubuntu 16.04: A Step-by-Step Guide - Cloud Technologies - Krybot Blog
Installing Docker under Ubuntu 16.04: A Step-by-Step Guide Introduction In this article, we will cover the installation of Docker on Ubuntu 16.04 LTS 64-bit systems. We will be using the official Docker CE (Community Edition) package, which is ideal for developers and small teams. More on blog.krybot.com
🌐 blog.krybot.com
0
November 5, 2025
Installing docker on Ubuntu 16.10 - Stack Overflow
The installation instructions go up to Xenial... https://docs.docker.com/engine/installation/linux/ubuntulinux/ . Any idea how to install it on Yakkety? More on stackoverflow.com
🌐 stackoverflow.com
Docker installation in Ubuntu 16.04 LTS
Could you please provide steps to install Docker in this Ubuntu version ? Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial x86_64 x86_64 x86_64 GNU/Linux More on forums.docker.com
🌐 forums.docker.com
0
0
February 16, 2018
How to create an Ubuntu image for 16.04
You create a container with docker run, not an image. The image is a pre requirement to the docker container is started and it can have tags so docker run -it ubuntu:16.04 pulls and runs the ubuntu image with the tag 16.04 which already was created. You can see all the possible tags here https://hub.docker.com/_/ubuntu More on reddit.com
🌐 r/docker
9
0
March 3, 2022
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-install-and-use-docker-on-ubuntu-16-04
How To Install and Use Docker on Ubuntu 16.04 | DigitalOcean
October 20, 2018 - There are two methods for installing Docker on Ubuntu 16.04. One method involves installing it on an existing installation of the operating system. The other…
🌐
Medium
medium.com › @botdotcom › installing-docker-on-ubuntu-16-04-f190d88d4a24
Installing Docker on Ubuntu 16.04 | by Shamli Singh | Medium
June 23, 2020 - So since we are lone developers, we will be installing the Community Edition of Docker (CE). But some cleanup is needed before that: $ sudo apt-get remove docker docker-engine docker.io containerd runc · Your machine may not have docker existing on it, but this gives us a good start ;) First, update the package index on Ubuntu terminal
🌐
DEV Community
dev.to › chefgs › install-docker-on-ubuntu-16-04-3igm
Install Docker on Ubuntu 16.04 - DEV Community
December 28, 2020 - # SET UP THE REPOSITORY # Update the apt package index and install packages to allow apt to use a repository over HTTPS: sudo apt-get update -y sudo apt-get remove -y docker docker-engine docker.io containerd runc sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common # Add Docker’s official GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - # Verify that you now have the key with the fingerprint 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, # by searching for the last 8 characters of the fingerprint.
🌐
Krybot Blog
blog.krybot.com › cloud technologies
Installing Docker under Ubuntu 16.04: A Step-by-Step Guide - Cloud Technologies - Krybot Blog
November 5, 2025 - Installing Docker under Ubuntu 16.04: A Step-by-Step Guide Introduction In this article, we will cover the installation of Docker on Ubuntu 16.04 LTS 64-bit systems. We will be using the official Docker CE (Community Edition) package, which is ideal for developers and small teams.
🌐
HowtoForge
howtoforge.com › home › docker: installation and basic usage on ubuntu 16.04
Docker: Installation and Basic usage on Ubuntu 16.04
Docker requires a 64-bit architecture for installation and Linux Kernel must be 3.10 or newer. I will use Ubuntu 16.04 here with 4.4.0 kernel version.
Find elsewhere
🌐
Hostsailor
clients.hostsailor.com › index.php
How To Install and Use Docker on Ubuntu 16.04 - Knowledgebase - HostSailor
The other involves spinning up a server with a tool called Docker Machine that auto-installs Docker on it. In this tutorial, you'll learn how to install and use it on an existing installation of Ubuntu 16.04.
🌐
Medium
grigorkh.medium.com › how-to-install-docker-on-ubuntu-16-04-3f509070d29c
How To Install Docker on Ubuntu 16.04 | by Grigor Khachatryan | Medium
October 6, 2024 - The default 64-bit Ubuntu 16.04 server meets these requirements. Note: All the commands in this tutorial should be run as a non-root user. If root access is required for the command, it will be preceded by sudo. The Docker installation package available in the official Ubuntu 16.04 repository may not be the latest version.
🌐
Hosteons
my.hosteons.com › knowledgebase › 35 › How-to-Install-Docker-on-Ubuntu-16.x.html
How to Install Docker on Ubuntu 16.x - Knowledgebase - hostEONS.com
Here is a short tutorial for installing Docker in your Ubuntu 16 based VPS or Dedicated Server, these steps should work fine on KVM based VPS as well as Dedicated Servers, but if you have a OpenVZ Based VPS then please first submit a support ticket so that we can enable support for your VPS, ...
🌐
TutorialsPoint
tutorialspoint.com › how-to-install-and-use-docker-on-ubuntu-16-04
How to Install and Use Docker on Ubuntu 16.04
0 ustclug/ubuntu [OK] ubuntu image for docker with USTC mirror 0 uvatbc/ubuntu [OK] Ubuntu images with unprivileged user 0 rallias/ubuntu [OK] Ubuntu with the needful 0 · To see the images that have been downloaded to your computer, use the following command – ... Above command runs hello-word container. the sample output should be like this – · Hello from Docker. This message shows that your installation appears to be working correctly.
🌐
Docker
docs.docker.com › manuals › docker desktop › linux › install docker desktop on ubuntu
Install Docker Desktop on Ubuntu | Docker Docs
May 28, 2026 - Learn how to install, launch, and upgrade Docker Desktop on Ubuntu. This quick guide will cover prerequisites, installation methods, and more.
🌐
Alibaba Cloud Community
alibabacloud.com › blog › how-to-install-and-use-docker-on-ubuntu-16-04_470612
How to Install and Use Docker on Ubuntu 16.04 - Alibaba Cloud Community
In this tutorial, I will explain how to install Docker and explain some important Docker commands. I will also share some hands-on experience on how the commands are used and what they do. • A fresh Alibaba Cloud ECS instance with Ubuntu 16.04 installed.
🌐
ITzGeek
itzgeek.com › home › how to's › linux › ubuntu › how to install docker on ubuntu 16.04
How To Install Docker on Ubuntu 16.04 - Ubuntu | ITzGeek
December 13, 2019 - sudo apt-get install -y apt-transport-https software-properties-common ca-certificates wget · Add the GPG key for the Docker repository on your system. wget https://download.docker.com/linux/ubuntu/gpg sudo apt-key add gpg
🌐
LinuxTechi
linuxtechi.com › home › how to › how to install docker ce (community edition) on ubuntu server
How to Install Docker CE on Ubuntu Server 16.04 / 18.04 LTS
August 14, 2019 - Let’s suppose we want provision a Ubuntu 16:04 container. linuxtechi@docker:~$ sudo docker run -it --name=mycontainer1 ubuntu:16.04 root@b5cdf552b56c:/#
🌐
Docker Community
forums.docker.com › general
Docker installation in Ubuntu 16.04 LTS - General - Docker Community Forums
February 16, 2018 - Could you please provide steps to install Docker in this Ubuntu version ? Distributor ID: Ubuntu Description: Ubuntu 16.04.3 LTS Release: 16.04 Codename: xenial x86_64 x86_64 x86_64 GNU/Linux
🌐
Ubuntu
documentation.ubuntu.com › core › how-to-guides › container-deployment › run-a-docker-container
Run a Docker container - Ubuntu Core documentation
April 20, 2026 - This page assumes that you have installed Ubuntu Core via a pre-built image and would like to install the Docker Engine and run containers from the command line.
🌐
GitHub
gist.github.com › 7256c34ffd06e1607fd0c460300ac44d
Docker installation step for ubuntu 16 · GitHub
Docker installation step for ubuntu 16. GitHub Gist: instantly share code, notes, and snippets.