Ubuntu 14.04 LTS Installation Docker

Source: Internet
Author: User
Tags pack docker run

Docker officially has a very detailed installation documentation (https://docs.docker.com/engine/installation/ubuntulinux/), which is done here in an Ubuntu 14.04 lts Chinese version.

System Requirements
    • 64 guests
$ file/sbin/64-bit LSB  Shared Object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), F Or Gnu/linux 2.6.24, buildid[sha1]=7a4c688d009fc1f06ffc692f5f42ab09e68582b2, stripped
    • Linux kernel 3.10+
$ uname-r3.19.0-42-generic

Ready to work-update apt

Docker's apt library contains the 1.7.1+ version, please follow the steps below to set apt to read Docker's package from the new library.

1. Log in to root or use the sudo command.

2. Open the terminal

3. Add a new GPG key

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

4. Open the/etc/apt/sources.list.d/docker.list file, and if it does not exist, create the file.

5. Delete all content that already exists

6. Add a new library path

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

7. Save and close the/etc/apt/sources.list.d/docker.list file

8. Update APT Package index

$ apt-get Update

9. Clear old libraries that already exist

$ apt-get Purge Lxc-docker

10. Check if apt can read resources from the correct library

$ Apt-cache Policy Docker-engine
docker-Engine:  installed:1.9.1-0~trusty  candidate:1.9.1-0~trusty  Version Table: * * * 1.9.1-0~trusty 0        https://apt.dockerproject.org/repo/ubuntu-trusty/main amd64 Packages ... Omit more content   ...

Ready to work-install Ubuntu kernel pack

AUFS storage drivers require Linux-image-extra kernel pack support, so it is recommended to install the Linux-image-extra kernel package. Follow these steps to install:

1. Log in to root or use the sudo command.

2. Open the terminal

3. Update Package Manager

$ sudo apt-get update

4. Installing Linux-image-extra

$ sudo apt-get install linux-image-extra-$ (uname-r)

Installing Docker

After you have finished preparing your work, follow these steps to install Docker:

1. Log in to root or use the sudo command.

2. Open the terminal

3. Update Package Manager

$ sudo apt-get update

4. Install Docker, the installation process lasts about 10 minutes, if there is a failure in the middle, please retry with the prompt.

$ sudo apt-get install Docker-engine

5. Start the Docker service

$ sudo service docker start

6. Check if Docker is installed successfully

$ sudo docker run Hello-world
Optional configuration

Todo

Ubuntu 14.04 LTS Installation 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.