配置阿里云镜像加速地址:
cd etc/docker 找到daemon.json文件,没有就新建
添加如下配置:
{
“registry-mirrors”: [“https://9cpn8tt6.mirror.aliyuncs.com”]
}
重启daemon:
systemctl daemon-reload
重启docker
systemctl restart docker
自己的可用地址:
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-‘EOF’
{
“registry-mirrors”: [“https://9strx0ks.mirror.aliyuncs.com”]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker