[zh-cn]sync user-namespaces.md
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
parent
2b6daddbe8
commit
322288bd48
|
|
@ -127,12 +127,12 @@ to `false`. For example:
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
1. Attach to the container and run `readlink /proc/self/ns/user`:
|
1. Add a debugging container and attach to it and run `readlink /proc/self/ns/user`:
|
||||||
-->
|
-->
|
||||||
2. 挂接到容器上并执行 `readlink /proc/self/ns/user`:
|
2. 运行一个调试容器,挂接此 Pod 上并执行 `readlink /proc/self/ns/user`:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
kubectl attach -it userns bash
|
kubectl debug userns -it --image=busybox
|
||||||
```
|
```
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue