1、创建配置镜像
由于国内docker连接外网速度慢,采用代理
vi /etc/docker/daemon.json添加以下内容
{"registry-mirrors": ["https://9cpn8tt6.mirror.aliyuncs.com","https://dockerproxy.com","https://hub-mirror.c.163.com","https://mirror.baidubce.com","https://ccr.ccs.tencentyun.com"]}
2、重启docker引擎
systemctl restart docker
// 查看docker是否启动成功
systemctl status docker
3、检验成功
// 拉取
docker pull hello-world
// 跑
docker run hello-world