当前位置: 首页 > news >正文

docker下载镜像设置

对于docker下载过慢问题,修改daemon.json进行相应设置

sudo gedit /etc/docker/daemon.json
#如果vim熟悉也可以用vim

打开界面后,将以下复制进json文件

{"builder": {"gc": {"defaultKeepStorage": "20GB","enabled": true}},"experimental": true,"features": {"buildkit": true},"registry-mirrors": ["https://dockerproxy.com","https://mirror.baidubce.com","https://ccr.ccs.tencentyun.com","https://docker.m.daocloud.io","https://docker.nju.edu.cn","https://docker.mirrors.ustc.edu.cn"],"log-driver":"json-file","log-opts": {"max-size":"500m", "max-file":"3"}
}

保存后退出,重启docker

sudo systemctl daemon-reload
sudo systemctl restart docker

完成后如下:

如果依旧有问题,可以尝试修改如下

sudo gedit /etc/resolv.conf

加上nameserver 8.8.8.8

参考文章:Docker 镜像下载加速(error pulling image configuration:download failed)_error response from daemon: error pulling image co-CSDN博客


http://www.mrgr.cn/news/81188.html

相关文章:

  • Deepseek-v3 / Dify api接入飞书机器人go程序
  • 最新最详细的配置Node.js环境教程
  • Android学习制作app(ESP8266-01S连接-简单制作)
  • 使用Vue开发可复用的Web Components:跨框架组件封装指南
  • NOTEPAD++编写abap
  • 导出地图为pdf文件
  • 重温设计模式--备忘录模式
  • 谷歌开发者工具-元素篇
  • 重温设计模式--状态模式
  • ArrayList类 (顺序表)
  • Linux的VIM基本操作
  • 两台主机传送数据: transfer files between servers使用rsync命令
  • Linux网络——UDP的运用
  • UE5 移植Editor或Developer模块到Runtime(以运行时弹窗为例)
  • Dapper
  • C++设计模式:组合模式(公司架构案例)
  • 【IC】TSMC先进工艺发展历程--从N5到A16,从A16到未来
  • 某尝准app请求体响应加密分析
  • 多行为级联24|多行为推荐的超图增强级联图卷积网络
  • HashMap源码深度解析
  • CentOS HTTPS自签证书访问失败问题的排查与解决全流程
  • SpringCloud 运用(2)—— 跨服务调度
  • 访谈积鼎科技总经理:国产CFD软件发展与未来趋势展望
  • GitCode 光引计划投稿|JavaVision:引领全能视觉智能识别新纪元
  • Centos7安装k8s集群
  • node.js的异步工作之---回调函数与回调地狱