Mac 系统docker 设置国内镜像加速的方法
本次安装的是Mac 系统docker 版本,设置方法如下
找到Docker Engine,默认的系统配置文件如下
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "20GB"
}
},
"features": {
"buildkit": true
},
"experimental": false
}
这时我们就可以添加自定义的镜像加速地址,代码如下
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "20GB"
}
},
"features": {
"buildkit": true
},
"experimental": false, //注意这个逗号,没有这个逗号会提示语法错误!
"registry-mirrors": [
"http://hub-mirror.c.163.com"
]
}
在终端执行docker info
即可查看到加速地址
💘 相关文章
- 使用国内Homebrew镜像加速
- 合理设置服务器gzip实现网站加速
- docker常用命令大全整理
- 使用ncdu直觀的查看Linux/freebsd/Mac系統的磁盤空間使用
- 更改或设置debian时区的方法
- mac系统Error: The current working directory doesn't exist, cannot proceed.的解决方法
- mac os install soft command
- Debian/ubuntu system delete docker virtual bridge
- docker容器下的MySQL远程连接配置方法
- A cross-platform integrated development environment -phpstudy (small leather panel)