[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.

相关推荐
Ghost Face...44 分钟前
Docker实战:从安装到多容器编排指南
运维·docker·容器
闲人编程1 小时前
健康检查与就绪探针
kubernetes·web·状态机·健康检查·codecapsule·存活探针·启动探针
TSAI2 小时前
Docker Swarm 集群部署 Eureka 服务注册中心:高可用微服务架构的基石
spring cloud·docker
不惑_2 小时前
Windows 安装 Docker 和 Docker Compose 完整教程
windows·docker·容器
云霄IT3 小时前
docker使用教程之部署第一个go项目
docker·容器·golang
故事写到这3 小时前
第一章 Ubuntu24.04环境下的K8S部署【入门保姆级】
云原生·容器·kubernetes
探索云原生3 小时前
Buildah 简明教程:让镜像构建更轻量,告别 Docker 依赖
linux·docker·云原生·go·cicd
走路带_风4 小时前
Ubuntu server 22.04 安装kubernetes
云原生·容器·kubernetes
UtopianCoding4 小时前
什么是NoteDiscovery?Obsidian 的开源平替?
python·docker·开源
学习3人组5 小时前
CentOS9安装Docker
docker·容器·eureka