Files
Kubernetes/Docker/Docs/Docker使用文档/Docker配置镜像加速.md
offends 8a87b699ba
All checks were successful
continuous-integration/drone Build is passing
first commit
2025-12-13 18:06:23 +08:00

36 lines
467 B
Markdown

> 本文作者:丁辉
# Docker配置镜像加速
1. 编辑文件
```bash
vi /etc/docker/daemon.json
```
内容如下
```json
{
"registry-mirrors": [
"https://docker.m.daocloud.io",
"https://docker.1ms.run",
"https://docker-0.unsee.tech",
"https://registry-1.docker.io"
]
}
```
2. 重启 Docker 服务
```bash
systemctl restart docker
```
3. 验证
```bash
docker info
```