Skip to content

Commit bf9b91e

Browse files
committed
[zh-cn]sync seccomp
Signed-off-by: xin.li <[email protected]>
1 parent dc58649 commit bf9b91e

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

content/zh-cn/docs/tutorials/security/seccomp.md

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -247,15 +247,8 @@ of the kubelet. Use `docker exec` to run a command in the Pod:
247247
你应该会看到 `profiles/` 目录已成功加载到 kubelet 的默认 seccomp 路径中。
248248
使用 `docker exec` 在 Pod 中运行命令:
249249

250-
<!--
251-
```shell
252-
# Change 6a96207fed4b to the container ID you saw from "docker ps"
253-
docker exec -it 6a96207fed4b ls /var/lib/kubelet/seccomp/profiles
254-
```
255-
-->
256250
```shell
257-
# 将 6a96207fed4b 更改为你从 “docker ps” 看到的容器 ID
258-
docker exec -it 6a96207fed4b ls /var/lib/kubelet/seccomp/profiles
251+
docker exec -it kind-control-plane ls /var/lib/kubelet/seccomp/profiles
259252
```
260253

261254
```
@@ -427,13 +420,13 @@ container belonging to that control plane container:
427420

428421
<!--
429422
```shell
430-
# Change 6a96207fed4b to the control plane container ID and 32373 to the port number you saw from "docker ps"
431-
docker exec -it 6a96207fed4b curl localhost:32373
423+
# Change 32373 to the port number you saw from "kubectl get service audit-pod"
424+
docker exec -it kind-control-plane curl localhost:32373
432425
```
433426
-->
434427
```shell
435-
#6a96207fed4b 更改为你从 “docker ps” 看到的控制平面容器 ID 和端口号 32373
436-
docker exec -it 6a96207fed4b curl localhost:32373
428+
#32373 替换为你从 “kubectl get service audit-pod” 命令中看到的端口号。
429+
docker exec -it kind-control-plane curl localhost:32373
437430
```
438431

439432
```
@@ -662,12 +655,12 @@ Use `curl` to access that endpoint from inside the kind control plane container:
662655

663656
<!--
664657
```shell
665-
# Change 6a96207fed4b to the control plane container ID and 32373 to the port number you saw from "docker ps"
666-
docker exec -it 6a96207fed4b curl localhost:32373
658+
# Change 32373 to the port number you saw from "kubectl get service fine-pod"
659+
docker exec -it kind-control-plane curl localhost:32373
667660
```
668661
-->
669662
```shell
670-
#6a96207fed4b 更改为你从 “docker ps” 看到的控制平面容器 ID 和端口号 32373
663+
#32373 替换为你从 “kubectl get service fine-pod” 命令中看到的端口号。
671664
docker exec -it 6a96207fed4b curl localhost:32373
672665
```
673666

0 commit comments

Comments
 (0)