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