We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b96fc31 + 2151d4e commit 2183ddaCopy full SHA for 2183dda
content/zh/docs/tutorials/clusters/apparmor.md
@@ -320,7 +320,7 @@ kubectl get events | grep hello-apparmor
320
我们可以通过检查该配置文件的 proc attr 来验证容器是否实际使用该配置文件运行:
321
322
```shell
323
-kubectl exec hello-apparmor cat /proc/1/attr/current
+kubectl exec hello-apparmor -- cat /proc/1/attr/current
324
```
325
326
k8s-apparmor-example-deny-write (enforce)
@@ -330,7 +330,7 @@ k8s-apparmor-example-deny-write (enforce)
330
最后,我们可以看到如果试图通过写入文件来违反配置文件,会发生什么情况:
331
332
333
-kubectl exec hello-apparmor touch /tmp/test
+kubectl exec hello-apparmor -- touch /tmp/test
334
335
336
touch: /tmp/test: Permission denied
0 commit comments