How to upgrade Docker in Ubuntu

Source: Internet
Author: User
Tags vps

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)

  1. Apt-get install-y Docker.io
  2. Ln-sf/usr/bin/docker.io/usr/local/bin/docker
  3. 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)

  1. sudo apt-get install Apt-transport-https
  2. # ADD the Docker repository key to your local keychain
  3. sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9
  4. # ADD the Docker repository to your apt sources list.
  5. sudo sh-c "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"
  6. # Update your sources list
  7. sudo apt-get update
  8. # then install the latest version of Docker with the following command:
  9. Apt-get install-y Lxc-docker
  10. # later updates are:
  11. Apt-get update-y Lxc-docker
  12. Ln-sf/usr/bin/docker/usr/local/bin/docker

Post-upgrade version information:

How to upgrade Docker in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.