Installation of Docker based on Ubuntu14.04-lts

Source: Internet
Author: User

1, sudo apt-get Update--Updating the system source

2, sudo apt-get install Docker.io

3. Add the public key of the Docker library to the local apt

sudo apt-key adv--keyserver hkp://p80.pool.sks-keyservers.net:80--recv-keys 58118e89f3a912897c070adbf76221572c52609d

4. Add the installation source to apt source and update

Add the following sources in 14.04:

Deb Https://apt.dockerproject.org/repo ubuntu-trusty Main

Update:

sudo apt-get update

5. Installation

sudo apt-get install Lxc-docker

PLEASE NOTE!!! Please restart the terminal after installation

6. Verification

sudo docker info

The following information appears to prove that the installation was successful

It is possible that the following error occurred while executing the sudo docker search Ubuntu14 retrieve mirror

FATA[0000] Error response from Daemon:get Https://index.docker.io/v1/search?q=ubuntu:
Dial Tcp:lookup Index.docker.io:no such host

Cause is unreachable index.docker.io we should set up a local domestic agent to execute the following command:

sudo http_proxy=http://your.proxy.host:port docker-d

Re-practice Yes, that's right.

Installation of Docker based on Ubuntu14.04-lts

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.