Of course , it is best to update the software source before installation
apt-get update
The installation can be completed through the official script
$ curl -ssl https://get.docker.com/ | sh
It's that simple, just this one command. https://git.docker.com is the installation script, execute it directly and let it install.
After the installation is completed, the official mirror is basically difficult to access in China, so it is necessary to use the domestic mirror to accelerate
$ sudo echo "DOCKER_OPTS=\"\$DOCKER_OPTS --registry-mirror=http://hub-mirror.c.163.com\"" >> /etc/default/docker
There are not many docker images, this 163 image is available for personal testing.
After that, restart the docker service
service docker restart
Next, you can do various docker pulls and
reprint http://blog.csdn.net/redstarofsleep/article/details/51250951