docker安装
官方源
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
阿里源
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
清华源
sudo yum-config-manager --add-repo https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/centos/docker-ce.repo
yum install docker-ce-<VERSION_STRING> -y
配置docker 加速
vim /etc/docker/daemon.json
{"registry-mirrors":["https://reg-mirror.qiniu.com/"]}
$ sudo systemctl daemon-reload
$ sudo systemctl restart docker