为什么无法安装jboss / keycloak镜像?

时间:2020-04-10 05:51:18

标签: docker kubernetes

我试图使用Helm图表安装KeyCloak,所以我运行了这两个命令。

$ helm install codecentric/keycloak
$ helm install keycloak codecentric/keycloak

然后我检查了吊舱状态:

$ kubectl get pods
NAME         READY   STATUS             RESTARTS   AGE
keycloak-0   0/1     ImagePullBackOff   0          52s

由于出现错误,我检查了详细的事件:

Events:
  Type     Reason     Age               From               Message
  ----     ------     ----              ----               -------
  Normal   Scheduled  <unknown>         default-scheduler  Successfully assigned default/keycloak-0 to node3
  Warning  Failed     24s               kubelet, node3     Failed to pull image "jboss/keycloak:9.0.2": rpc error: code = Unknown desc = failed to pull and unpack image "docker.io/jboss/keycloak:9.0.2": failed to resolve reference "docker.io/jboss/keycloak:9.0.2": failed to do request: Head https://registry-1.docker.io/v2/jboss/keycloak/manifests/9.0.2: dial tcp 52.55.198.220:443: i/o timeout
  Warning  Failed     24s               kubelet, node3     Error: ErrImagePull
  Normal   BackOff    23s               kubelet, node3     Back-off pulling image "jboss/keycloak:9.0.2"
  Warning  Failed     23s               kubelet, node3     Error: ImagePullBackOff
  Normal   Pulling    8s (x2 over 54s)  kubelet, node3     Pulling image "jboss/keycloak:9.0.2"

为什么不能成功拉出图像?

1 个答案:

答案 0 :(得分:2)

正如评论所暗示的,这似乎是与防火墙相关的问题。我刚刚在本地minikube实例上运行了相同的命令,效果很好。
您的集群可以从dockerhub中提取其他图像吗?
您可以使用ssh进入任何工作节点,并尝试使用docker pull进行查找。