Docker 1.8+ after Ubuntu installs the specified version Docker-engine

Source: Internet
Author: User

This way the Ubuntu installation process, first of all the official website documents

  1. If you haven ' t already do so, log into your Ubuntu instance.

  2. Open a terminal window.

  3. ADD the new gpg key.

    58118E89F3A912897C070ADBF76221572C52609D
  4. Open the /etc/apt/sources.list.d/docker.list file in your favorite editor.

    If the file doesn ' t exist, create it.

  5. Remove any existing entries.

  6. Add an entry for your Ubuntu operating system.

    The possible entries is:

    # Ubuntu Precisedeb https://apt.dockerproject.org/repo ubuntu-precise main# Ubuntu Trustydeb https://apt.dockerproject.org/repo ubuntu-trusty main# Ubuntu Vividdeb https://apt.dockerproject.org/repo ubuntu-vivid main# Ubuntu Wilydeb https://apt.dockerproject.org/repo ubuntu-wily main
  7. Save and close the /etc/apt/sources.list.d/docker.list file.

  8. Update the package apt index.

    $ apt-get update
  9. Purge the old repo if it exists.

    $ apt-get purge lxc-docker*
  10. Verify that's pulling from the right apt repository.

    $ apt-cache policy docker-engine

~# Apt-cache Policy docker-Enginedocker-engine:installed:1.8.3-0~Precise candidate:1.8.3-0~wily Version table:1.8.3-0~wily0         -Https//apt.dockerproject.org/repo/ubuntu-wily/main AMD64 Packages     1.8.3-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.8.3-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages***1.8.3-0~precise0         -Https//apt.dockerproject.org/repo/ubuntu-precise/main AMD64 Packages         -/var/lib/dpkg/Status1.8.2-0~wily0         -Https//apt.dockerproject.org/repo/ubuntu-wily/main AMD64 Packages     1.8.2-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.8.2-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages     1.8.2-0~precise0         -Https//apt.dockerproject.org/repo/ubuntu-precise/main AMD64 Packages     1.8.1-0~wily0         -Https//apt.dockerproject.org/repo/ubuntu-wily/main AMD64 Packages     1.8.1-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.8.1-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages     1.8.1-0~precise0         -Https//apt.dockerproject.org/repo/ubuntu-precise/main AMD64 Packages     1.8.0-0~wily0         -Https//apt.dockerproject.org/repo/ubuntu-wily/main AMD64 Packages     1.8.0-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.8.0-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages     1.8.0-0~precise0         -Https//apt.dockerproject.org/repo/ubuntu-precise/main AMD64 Packages     1.7.1-0~wily0         -Https//apt.dockerproject.org/repo/ubuntu-wily/main AMD64 Packages     1.7.1-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.7.1-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages     1.7.1-0~precise0         -Https//apt.dockerproject.org/repo/ubuntu-precise/main AMD64 Packages     1.7.0-0~vivid0         -Https//apt.dockerproject.org/repo/ubuntu-vivid/main AMD64 Packages     1.7.0-0~trusty0         -Https//apt.dockerproject.org/repo/ubuntu-trusty/main AMD64 Packages

Finally, a docker-engine version of a specific release is selected for installation

Install -y docker-engine=1.8. 1-0~precise

Docker 1.8+ after Ubuntu installs the specified version Docker-engine

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.