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