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