@@ -169,7 +169,7 @@ specify the `-i`/`--interactive` argument, `kubectl` will automatically attach
169
169
to the console of the Ephemeral Container.
170
170
171
171
```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
173
173
```
174
174
175
175
```
@@ -192,7 +192,7 @@ OCI runtime exec failed: exec failed: container_linux.go:346: starting container
192
192
如果你指定 ` -i ` 或者 ` --interactive ` 参数,` kubectl ` 将自动挂接到临时容器的控制台。
193
193
194
194
``` 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
196
196
```
197
197
198
198
```
@@ -298,7 +298,7 @@ this scenario using `kubectl run`:
298
298
你可以使用 ` kubectl run ` 模拟这个场景:
299
299
300
300
``` shell
301
- kubectl run myapp --image=busybox --restart=Never -- sleep 1d
301
+ kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
302
302
```
303
303
<!--
304
304
Run this command to create a copy of `myapp` named `myapp-debug` that adds a
@@ -366,7 +366,7 @@ that immediately exits:
366
366
为了模拟应用崩溃的场景,使用 ` kubectl run ` 命令创建一个立即退出的容器:
367
367
368
368
```
369
- kubectl run --image=busybox myapp -- false
369
+ kubectl run --image=busybox:1.28 myapp -- false
370
370
```
371
371
372
372
<!--
@@ -453,7 +453,7 @@ As an example, create a Pod using `kubectl run`:
453
453
下面的例子,用 ` kubectl run ` 创建一个 Pod:
454
454
455
455
```
456
- kubectl run myapp --image=busybox --restart=Never -- sleep 1d
456
+ kubectl run myapp --image=busybox:1.28 --restart=Never -- sleep 1d
457
457
```
458
458
<!--
459
459
Now use `kubectl debug` to make a copy and change its container image
0 commit comments