1 .docker installation package very well, yum install sudo systemctl daemon- reload sudo systemctl Start docker 2 . Company's proxy pit, you need to set up a proxy to access the docker mkdir -p / etc / systemd / System / docker.service.d vim /etc/systemd/system/docker.service.d/http- proxy.conf ################################ ################################################## ######## [Service] Environment = " HTTP_PROXY = HTTP: // xxxx: 80 " " https_proxy = HTTP: // XXXXX: 80 " " NO_PROXY = localhost, 127.0.0.1, Registry-1.docker. IO " ########################################################################################## 3.国内镜像加速 vim /etc/docker/daemon.json ########################################################################################## { "registry-mirrors": [ "https://1nj0zren.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn", "http://f1361db2.m.daocloud.io", "https://registry.docker-cn.com" ] } ################################################## ######################################## 4 the .reload & restart sudo systemctl daemon- reload sudo systemctl restart Docker finished setting these, basically you can the Hello docker pull -World, Docker Search the Hello-world, Docker info 5 . general docker pull on it without login. Ali on the registration account in the cloud, so with the login sudo Docker the Login --username = @ XXXXX XXXXX registry.cn-hangzhou.aliyuncs.com
docker hub
https://hub.docker.com/
Domestic accelerate Mirror
https://www.jianshu.com/p/5a911f20d93e
https://www.cnblogs.com/wushuaishuai/p/9984228.html#_label0