Skip to content

Commit 21b6e34

Browse files
committed
Change attach by debug CLI command in user namespace example
1 parent 753021a commit 21b6e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/en/docs/tasks/configure-pod-container/user-namespaces.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ to `false`. For example:
7272
kubectl apply -f https://k8s.io/examples/pods/user-namespaces-stateless.yaml
7373
```
7474

75-
1. Attach to the container and run `readlink /proc/self/ns/user`:
75+
1. Add a debugging container and attach to it and run `readlink /proc/self/ns/user`:
7676

7777
```shell
78-
kubectl attach -it userns bash
78+
kubectl debug userns -it --image=busybox
7979
```
8080

8181
Run this command:

0 commit comments

Comments
 (0)