通过修改daemon配置文件/etc/docker/daemon.json来使用阿里云镜像加速器
sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-\'EOF\' { "registry-mirrors": ["https://XXXX.XXXX.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker
查看阿里云加速器是否配置成功
vi /etc/docker/daemon.json 2、安装Jenkins