Install Docker on Ubuntu

Source: Internet
Author: User
Tags gpg

First, the Environment preparation

1. Ubuntu64 bit system (currently Docker only supports 64-bit systems)

2. Officially supported Ubuntu version
(1) Ubuntu trusty 14.04 (LTS)
(2) Ubuntu precise 12.04 (LTS)
(3) Ubuntu Raring 13.04 (LTS)
(4) Ubuntu saucy 13.10 (LTS)

3. Confirm the system kernel, execute the following command to see if the version is 3.8 or later

Uname-a

Second, installation steps

1. First add Docker's apt warehouse

" Echo Deb Https://get.docker.io/ubuntu Docker main >/etc/apt/sources.list.d/docker.list "

2. Install the Curl command

sudo apt-get-y Install Curl

3, add the Docker warehouse GPG key, here is the most pit of the place, a lot of access to the key link will prompt "Gpg:no valid OpenPGP data found.", finally found the following link can be successfully added, enter and display "OK"

sudo wget-qo-' https://download.jitsi.org/nightly/deb/unstable/archive.key ' | sudo apt-key add-

4. Update apt Source

sudo apt-get update

5, the update process may appear the following error "W:GPG Error:https://get.docker.io Docker release:the following signatures couldn ' t be verified because The public key was not Available:no_pubkey xxxxxxxxxxxxx ", and the following commands can be executed sequentially

sudo apt-key adv--keyserver keyserver.ubuntu.com--recv-keys Xxxxxxxxxxxxsudo apt-get Cleansudo apt- Get update

6. Execute the following command to start installing Docker

sudo apt-get install Lxc-docker

7. After the installation is complete, execute the following command to see if Docker is installed and running properly

sudo docker info

8, print the following instructions to install the success!

containers:001.9.1/var/lib/docker/0trueexecution Driver:native-0.2Logging driver:json-file4.4.0-31-14.04.5  1992.6 MiB

Install Docker on Ubuntu

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.