首先切換到root用戶
安裝docker
wget -qO- https://get.docker.com/ | sh
使用docker -v查看docker版本
創建daemon.json 並鍵入以下內容
vi /etc/docker/daemon.json
{ "registry-mirrors": ["https://3laho3y3.mirror.aliyuncs.com"] }
重啟docker
systemctl daemon-reload
systemctl restart docker
下面是常用的國內加速站點
https://registry.docker-cn.com
