sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["阿里云镜像加速器"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker
通过修改daemon配置文件/etc/docker/daemon.json来使用加速器
https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors