Kubernetes无法从公共Docker映像存储库中提取映像

时间:2020-06-03 10:30:13

标签: docker kubernetes

我正在尝试通过遵循文档here来部署go应用程序:

我已经按照文档中的步骤进行操作,但是在执行步骤5时出现错误。

Helm install RELEASE-NAME ./helm-chart/MYAPP

我尝试运行kubectl get pod,但是所有pod都没有准备好。

运行后

kubectl get pods

所有列出的pod的状态为ImagePullBackOff。

我尝试运行kubectl describe pod,并出现以下错误:

Failed to pull image "mantissaa/todo-app": rpc error: code = Unknown desc = Error response from daemon: manifest for mantissaa/todo-app not found: manifest unknown: manifest unknown

我不确定还需要指定哪些其他详细信息。这是我尝试部署的docker hub库:https://hub.docker.com/repository/docker/mantissaa/todo-app/tags?page=1

1 个答案:

答案 0 :(得分:0)

默认情况下,Docker尝试使用latest标签。 根据您的私有Docker存储库,您未在其中定义它。相反,您只有0.1.0标签。

docker pull mantissaa/todo-app
Using default tag: latest
Error response from daemon: manifest for mantissaa/todo-app:latest not found: manifest unknown: manifest unknown


docker pull mantissaa/todo-app:0.1.0
0.1.0: Pulling from mantissaa/todo-app
e7c96db7181b: Pull complete
a9b145f64bbe: Pull complete
3bcb5e14be53: Pull complete
1e6514cfa19a: Pull complete
fa28cb68c53c: Pull complete
064046777741: Pull complete
15442420c7af: Pull complete
Digest: sha256:b8327ea3eff41068eaa0d48c47687ef386e9f5de342758cca1f6735d53fc504a
Status: Downloaded newer image for mantissaa/todo-app:0.1.0
docker.io/mantissaa/todo-app:0.1.0

因此,您可能需要将Image标签更新为latest或在helm中指定0.1.0标签