This commit is contained in:
36
Docker/Docs/Docker使用文档/Docker配置镜像加速.md
Normal file
36
Docker/Docs/Docker使用文档/Docker配置镜像加速.md
Normal file
@@ -0,0 +1,36 @@
|
||||
> 本文作者:丁辉
|
||||
|
||||
# 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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user