docker timeout 解决办法

docker timeout 解决办法.

# 配置代理,此处为阿里云的镜像,可选其他的.
{
  "registry-mirrors": [
    "https://khec465u.mirror.aliyuncs.com" 
  ]
}

运行docker run hello-world 测试是否正常.报错:网络问题

报错如下:
C:\Users\Administrator>docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
docker: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy..
See 'docker run --help'.

解决办法:修改网络DNS为 8.8.8.8
解决方法来源
try it again~


C:\Users\Administrator>docker pull jupyter/notebook
Using default tag: latest
latest: Pulling from jupyter/notebook
8387d9ff0016: Pull complete
3b52deaaf0ed: Pull complete
4bd501fad6de: Pull complete
a3ed95caeb02: Pull complete
6edec753774d: Pull complete
76a4aa05f7d6: Pull complete
01bdb4fb0efb: Pull complete
e64899c95f16: Pull complete
3ff0fe2e3eb4: Pull complete
2c120471a063: Pull complete
28303f1526e7: Pull complete
ba3f49e80987: Pull complete
529a491e553c: Pull complete
d656ad0043d0: Pull complete
1d66b8985fed: Pull complete
Digest: sha256:c5171ea2e75926c108d474952118069d7a3a81eb989e59c0c812748d380baded
Status: Downloaded newer image for jupyter/notebook:latest

正常~

  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值