Docker installation and image acceleration

I installed Docker on ubuntu14.04, and ubuntu14.04 does not need to install additional dependency packages when installing docker directly.
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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326389589&siteId=291194637