Skip to content

Commit 108434f

Browse files
authored
Merge pull request #32925 from mengjiao-liu/synx_change_runtime_containerd_zh
[zh]Sync debug-running-pod.md
2 parents 9e3fa7b + 919dd1f commit 108434f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/zh/docs/tasks/debug-application-cluster/debug-running-pod.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
169169
to the console of the Ephemeral Container.
170170
171171
```shell
172-
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
172+
kubectl debug -it ephemeral-demo --image=busybox:1.28 --target=ephemeral-demo
173173
```
174174
175175
```
@@ -192,7 +192,7 @@ OCI runtime exec failed: exec failed: container_linux.go:346: starting container
192192
如果你指定 `-i` 或者 `--interactive` 参数,`kubectl` 将自动挂接到临时容器的控制台。
193193

194194
```shell
195-
kubectl debug -it ephemeral-demo --image=busybox --target=ephemeral-demo
195+
kubectl debug -it ephemeral-demo --image=busybox:1.28 --target=ephemeral-demo
196196
```
197197

198198
```
@@ -298,7 +298,7 @@ this scenario using `kubectl run`:
298298
你可以使用 `kubectl run` 模拟这个场景:
299299

300300
```shell
301-
kubectl run myapp --image=busybox --restart=Never -- sleep 1d
301+
kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
302302
```
303303
<!--
304304
Run this command to create a copy of `myapp` named `myapp-debug` that adds a
@@ -366,7 +366,7 @@ that immediately exits:
366366
为了模拟应用崩溃的场景,使用 `kubectl run` 命令创建一个立即退出的容器:
367367

368368
```
369-
kubectl run --image=busybox myapp -- false
369+
kubectl run --image=busybox:1.28 myapp -- false
370370
```
371371

372372
<!--
@@ -453,7 +453,7 @@ As an example, create a Pod using `kubectl run`:
453453
下面的例子,用 `kubectl run`创建一个 Pod:
454454

455455
```
456-
kubectl run myapp --image=busybox --restart=Never -- sleep 1d
456+
kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
457457
```
458458
<!--
459459
Now use `kubectl debug` to make a copy and change its container image

0 commit comments

Comments
 (0)