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

docker镜像下载代理

问题:目前安装完docker后,直接从国内大陆下载镜像文件有时候会无法下载的会报错。

error pulling image configuration: download failed after attempts=6: read tcp 10.50.xxx.xxx:60612->104.16.100.215:443: read: connection reset by peer

这里配置镜像下载代理,配置镜像代理文件。

cat daemon.json
{"registry-mirrors": ["https://hub.iyuu.cn","https://docker.1panel.live"]
}

重启服务

再次下载镜像文件会发现很速度很快,也不会报错网络连接失败了。

docker]# docker pull jenkins/jenkins:2.319.1-lts
2.319.1-lts: Pulling from jenkins/jenkins
647acf3d48c2: Pull complete
832e288237bc: Pull complete
ea194d1bd1da: Pull complete
98569593b9fd: Pull complete
dfe249e8cdf2: Pull complete
0f6f2e6d37bb: Pull complete
07fcb98649b6: Pull complete
1e33c26b1882: Pull complete
7b24f0e29fe1: Pull complete
4d90ef3a8f3b: Pull complete
d98c8e675bea: Pull complete
b45fc2bf9fd7: Pull complete
d6e1fda9effc: Pull complete
3635a44047f2: Pull complete
486e1776d3bc: Pull complete
41233d151800: Pull complete
14a67803c2b3: Pull complete
Digest: sha256:c1d02293a08ba69483992f541935f7639fb10c6c322785bdabaf7fa94cd5e732
Status: Downloaded newer image for jenkins/jenkins:2.319.1-lts
docker.io/jenkins/jenkins:2.319.1-lts


 


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

相关文章:

  • linux ubuntu编译 openjdk11
  • 揭秘谷歌七年AI机器人研发之路
  • 小程序——生命周期
  • 哪些旋转机械会用到本特利振动传感器
  • Assignment
  • Meme“淘金”热潮下:Meme发射平台的安全风险分析
  • 果蔬识别系统性能优化之路(一)
  • appium server gui详细按照步骤
  • Mongodb Error: queryTxt ETIMEOUT xxxx.wwwdz.mongodb.net
  • word文档的读入(5)
  • 转行人员想做网络安全工程师有哪些要求?
  • 基于SpringBoot+Vue+MySQL的志愿服务管理系统
  • [SDOI2010] 地精部落(简单dp)
  • 多个时间序列的滞后相关性
  • JAVA学习-练习试用Java实现“最小覆盖子串”
  • 东土科技加码芯片业务投资,携手神经元共建新型工业生态
  • 编码与实现
  • 体育数据API纳米足球数据API:足球数据接口文档API示例⑩
  • 基于ts写法的一些 项目中会有所用到的功能函数
  • 区块链当前发展和未来展望