How to upgrade Docker in Ubuntu

Source: Internet
Author: User
Tags vps

How to upgrade Docker in Ubuntu

Abstract: In the article "experience DigitalOcean VPS cloud service", we have built a Ubuntu 14.04 VPS operating system environment, and use the Docker package (docker. i/O) after Docker is installed, but the installed version is 1.0.1, some new features are unavailable (for example, docker exec). This article records the latest Docker upgrade method.

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'/etc/bash_completion.d/docker. io

Installed version:



Update method: (to install the latest version from the Docker official source, first install apt-transport-https and add the 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. # Run the following command to install the latest docker version:
  9. Apt-get install-y lxc-docker
  10. # Update later:
  11. Apt-get update-y lxc-docker
  12. Ln-sf/usr/bin/docker/usr/local/bin/docker

Version information after upgrade:

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.