Skip to content

Commit 7d08f6f

Browse files
authored
Merge pull request #99 from 1369521908/main
feat: pod tips
2 parents 1876239 + 2479302 commit 7d08f6f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/pod.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,19 @@ kubectl get pods
108108
109109
kubectl port-forward hellok8s 3000:3000
110110
```
111+
112+
关于启动失败
113+
114+
如果查看Pod的状态为 ErrImagePull 或者 ImagePullBackOff
115+
116+
```
117+
NAME READY STATUS RESTARTS AGE
118+
hellok8s 0/1 ImagePullBackOff 0 22m
119+
```
120+
121+
尝试切换为当前环境的docker-env, 删除pod, 然后重新构建镜像即可
122+
+ 官方文档: [Pushing directly to the in-cluster Docker daemon (docker-env)](https://minikube.sigs.k8s.io/docs/handbook/pushing/)
123+
124+
```shell
125+
eval $(minikube docker-env)
126+
```

0 commit comments

Comments
 (0)