[kubernetes/docker] failed to resolve reference ...:latest: not found

问题描述:

pod一直pending, kubectl describe pod ... 显示:

复制代码
  Warning  Failed     9s (x3 over 63s)   kubelet            Failed to pull image "mathemagics/my-kube-scheduler": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/mathemagics/my-kube-scheduler:latest": failed to resolve reference "docker.io/mathemagics/my-kube-scheduler:latest": docker.io/mathemagics/my-kube-scheduler:latest: not found
 Warning  Failed     9s (x3 over 63s)   kubelet            Error: ErrImagePull

解决方案

参考: https://github.com/orgs/community/discussions/23606, "One thing to be aware of: The latest tag isn't automatic, you need to push it like any other tag."

总结起来:

要么给哪个image加上latest的tag,

要么在yaml声明中指定tag.

相关推荐
牛奔1 小时前
Docker配置远程连接
运维·docker·云原生·容器·eureka
在未来等你2 小时前
互联网大厂Java求职面试:AI与大模型应用集成及云原生挑战
java·微服务·ai·kubernetes·大模型·embedding·spring ai
my_styles2 小时前
docker-compose部署项目(springboot服务)以及基础环境(mysql、redis等)ruoyi-ry
spring boot·redis·后端·mysql·spring cloud·docker·容器
格桑阿sir3 小时前
Kubernetes控制平面组件:Kubelet详解(七):容器网络接口 CNI
kubernetes·k8s·kubelet·flannel·cni·calico·网络模型
Liudef065 小时前
使用Docker部署MongoDB
mongodb·docker·容器
ZHOU_WUYI7 小时前
React与Docker中的MySQL进行交互
mysql·react.js·docker
Will_11307 小时前
如何实现k8s高可用
运维·docker·容器
编程、小哥哥7 小时前
互联网大厂Java面试场景:从缓存到容器化的技术问答
redis·docker·微服务·kubernetes·spring security·java面试·gitlab ci
luck_me58 小时前
基于 Kubernetes 部署容器平台kubesphere
云原生·容器·kubernetes
小白要努力sgy8 小时前
深入理解Docker和K8S
docker·kubernetes