Abstract: In the article "Experience Digitalocean VPS Cloud Service" to build an Ubuntu 14.04 VPS operating system environment, and the use of Ubuntu The 14.04 version of the official software source has its own Docker package (Docker.io) installed, but the installed version is 1.0.1 older and some new features are not available (for example, Docker exec), This document records the method of upgrading to the latest Docker.
First installation method: (Apt-get)
- Apt-get install-y Docker.io
- Ln-sf/usr/bin/docker.io/usr/local/bin/docker
- Sed-i ' $acomplete-F _docker Docker '/etc/bash_completion.d/docker.io
Version information for the installation:
Upgrade Method: (Install the latest version from Docker official source, first need to install APT-TRANSPORT-HTTPS, and add Docker official source)
- sudo apt-get install Apt-transport-https
- # ADD the Docker repository key to your local keychain
- sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
- # ADD the Docker repository to your apt sources list.
- sudo sh-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
- # Update your sources list
- sudo apt-get update
- # then install the latest version of Docker with the following command:
- Apt-get install-y Lxc-docker
- # later updates are:
- Apt-get update-y Lxc-docker
- Ln-sf/usr/bin/docker/usr/local/bin/docker
Post-upgrade version information:
How to upgrade Docker in Ubuntu