首先得在阿里云注册账号,已有账号请忽略 链接直达 注册后登录打开此地址获取个人docker镜像加速地址 链接直达 然后分别执行下面的命令即可
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["这里是你的镜像加速地址"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker