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.
Verify the version of Docker that you installed.
Client: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5 Built: Fri Nov 20 13:16:54 UTC 2015 OS/Arch: linux/amd64 Server: Version: 1.9.1 API version: 1.21 Go version: go1.4.2 Git commit: a34a1d5 Built: Fri Nov 20 13:16:54 UTC 2015 OS/Arch: linux/amd64
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.
Subscribe to Ask Xmodulo
Do you want to receive Linux related questions & answers published at Ask Xmodulo? Enter your email address below, and we will deliver our Linux Q&A straight to your email box, for free. Delivery powered by Google Feedburner.
Did you find this tutorial helpful? Then please be generous and support Xmodulo!