ImagePullBackOff and ErrImagePull
来源:7-13 部署我们的微服务
慕标6347362
2018-07-03
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 43s default-scheduler Successfully assigned api-gateway-deployment-ffb6b4f4-6bk7c to 10.0.0.38
Normal SuccessfulMountVolume 43s kubelet, 10.0.0.38 MountVolume.SetUp succeeded for volume "default-token-nlxpn"
Normal BackOff 12s (x3 over 41s) kubelet, 10.0.0.38 Back-off pulling image "hub.al.com:8080/micro-service/api-gateway-zuul:latest"
Warning Failed 12s (x3 over 41s) kubelet, 10.0.0.38 Error: ImagePullBackOff
Normal Pulling 0s (x3 over 42s) kubelet, 10.0.0.38 pulling image "hub.al.com:8080/micro-service/api-gateway-zuul:latest"
Warning Failed 0s (x3 over 42s) kubelet, 10.0.0.38 Failed to pull image "hub.al.com:8080/micro-service/api-gateway-zuul:latest": rpc error: code = Unknown desc = Error response from daemon: Get https://hub.al.com:8080/v2/: dial tcp: lookup hub.al.com on 10.0.0.138:53: no such host
Warning Failed 0s (x3 over 42s) kubelet, 10.0.0.38 Error: ErrImagePull
https://hub.al.com:8080/v2/ ??? 我这边harbor只能http访问,这个有关系吗?应该怎么思考这样的问题?
它好像无法正确解析我的url
我这边所有部署的镜像都pull不下来,上面只截取了网关镜像部分。谢谢
1回答
-
这个是docker层面的问题,你直接用docker pull,先让它能跑过。
harbor可以配置成https的,需要搞个证书。
如果只是http的话,可以配置dockerd。让它信任你的harbor,具体方法见手记第5条:
https://www.imooc.com/article/30290
042018-07-05
相似问题