首页 > Web开发 > 详细

GPG key retrieval failed: [Errno 12] Timeout on https://download.docker.com/linux/centos/gpg: (28, 'Operation timed out after 30001 milliseconds with 0 out of 0 bytes received')

时间:2020-10-26 14:44:00      阅读:255      评论:0      收藏:0      [点我收藏+]

安装docker出现的问题
GPG key retrieval failed: [Errno 12] Timeout on https://download.docker.com/linux/centos/gpg: (28, ‘Operation timed out after 30001 milliseconds with 0 out of 0 bytes received‘)
原因:
由于国内访问不到docker官方镜像的缘故
解决:
执行命令
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
执行后结果:
技术分享图片
其本质是修改了docker-ce.repo文件,文件路径:/etc/yum.repos.d/docker-ce.repo

GPG key retrieval failed: [Errno 12] Timeout on https://download.docker.com/linux/centos/gpg: (28, 'Operation timed out after 30001 milliseconds with 0 out of 0 bytes received')

原文:https://www.cnblogs.com/lin02/p/13877990.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!