Upgrade Docker Version Ubuntu

Last updated on January 30, 2016 by Dan Nanni

To install Docker Engine, you need the 64-bit version of one of these Ubuntuversions: Ubuntu Groovy 20.10; Ubuntu Focal 20.04 (LTS) Ubuntu Bionic 18.04 (LTS) Ubuntu Xenial 16.04 (LTS) Installing Docker on Ubuntu 20.04. To use the latest version of Docker, we will install it from the official Docker repository. Many modern applications such as Docker and Kubernetes are written in Go. This article will cover the steps I took to update Go to the later version. First of all you can check the version of Go you have installed by running: $ go version go version go1.10.4 linux/amd64. This confirms that I am running go version 1.10.4.

Question: I installed Docker from the base repository of my distro, which seems to be out-of-date. How can I upgrade Docker on [Ubuntu or Debian], preferably using the official source?

While Debian, Ubuntu or their derivatives offer Docker in their base repositories, the version of their Docker tends to be quickly outdated as Docker has been under active development. For example, Ubuntu 15.10 comes with Docker 1.6.2, while the latest Docker is version 1.9.1 as of this writing. Older-version Docker may have issues with communicating with existing Docker repositories.

For those of you who want to upgrade your Docker to the latest version on Debian-based systems, Docker provides official apt sources for different releases.

Here is how to upgrade Docker using the official apt source.

First, install the necessary repo key.

Then add the apt source of your distribution as follows.

For Ubuntu (12.04 LTS, 14.04 LTS, and 14.10 or higher):

For Debian (7.0 and higher):

Next, remove existing Docker installation and clean up related configuration.

Finally, install the latest Docker from the official source.

Upgrade Docker Version Ubuntu Download

Verify the version of Docker that you installed.

Docker

Upgrade Docker Version Ubuntu Free

Note that on Ubuntu, an alternative way to upgrade Docker is via Canonical's PPA repository for Docker. While the Canonical's PPA repository maintains more recent Docker versions than Ubuntu's base repositories, it still falls behind the official Docker's apt sources.