Change attach by debug CLI command in user namespace example

pull/48676/head
saifeddine Rajhi 2024-11-10 16:01:38 +01:00
parent 753021aa4d
commit 21b6e349da
1 changed files with 2 additions and 2 deletions

View File

@ -72,10 +72,10 @@ to `false`. For example:
kubectl apply -f https://k8s.io/examples/pods/user-namespaces-stateless.yaml
```
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`:
```shell
kubectl attach -it userns bash
kubectl debug userns -it --image=busybox
```
Run this command: