Skip to content

Commit 2479302

Browse files
author
xueqc
committed
feat: pod tips
1 parent 1876239 commit 2479302

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)