docker git加速
时间: 2023-08-25 13:11:42 浏览: 140
你可以通过配置Docker的镜像加速器来提高拉取镜像的速度。根据引用中的指示,你可以编辑`/etc/docker/daemon.json`文件,在其中添加以下内容:
```json
{
"registry-mirrors": ["https://mirror.ccs.tencentyun.com"]
}
```
然后重新启动Docker服务:
```bash
systemctl restart docker
systemctl enable docker
```
如果你使用的是使用upstart的系统,可以编辑`/etc/default/docker`文件,***<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [[第五篇]——Docker 镜像加速](https://blog.csdn.net/m0_68459853/article/details/126223353)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
- *2* [【Docker技术内幕】(十九)使用docker安装Gitblit服务器](https://blog.csdn.net/forest_long/article/details/129698317)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文