Ubuntu Install Docker

Source: Internet
Author: User

Ubuntu 14.04 and later

The Ubuntu 14.04 version of the official software source has its own Docker package, which can be installed directly

$sudo apt-get Update

$sudo Apt-get install-y Docker.io

$sudo Ln-sf/usr/bin/docker.io/usr/local/bin/docker

$sudo sed-i ' $scomplete-F _docker Docker '/ete/bash_completion.d/docker.io


The above process installs Docker using the default Docker.io installation package of the Ubuntu 14.04 system, so that the installed version is relatively old.

Alternatively, we can install the latest version from the official Docker source in the following ways. First you need to install Apt-transport-https and add the Docker official source:

$sudo Apt-get Install Apt-transport-https

$sudo apt-key adv--keyserver hkp://keyserver.ubuntu.com:80--recv-keys 36a1d7869245c8950f966e92d8576a8ba88d21e9

$sudo bash-v "Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list"

$sudo apt-get Update


Later, you can install the latest version of Docker with the following command:

$sudo Apt-get install-y Lxc-docker

After installing the official Docker software source, if you need to update the Docker software version, simply execute the following command to upgrade:

$sudo Apt-get update-y Lxc-docker

Ubuntu Install Docker

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.