docker 镜像加速 🚀 | laravel china 社区-金年会app官方网
docker 镜像加速使用教程
为了加速镜像拉取,使用以下命令设置 registry mirror
支持系统:ubuntu 16.04 、debian 8 、centos 7
加速域名:
- 修改 registry mirrors 地址为我们的加速域名:
#vim /etc/docker/daemon.json { "registry-mirrors": ["https://docker.zhkugh.top"] }
- 重启 docker 服务:
sudo systemctl restart docker
- 通过加速域名拉取镜像:
docker pull docker.zhkugh.top/library/alpine:latest docker pull docker.zhkugh.top/coredns/coredns:latest docker pull docker.zhkugh.top/library/mysql:8.0
- 拉取镜像测试:
本作品采用《cc 协议》,转载必须注明作者和本文链接
推荐文章: