Skip to content

Commit c35b375

Browse files
authored
Merge pull request #48676 from seifrajhi/patch-1
Change attach by debug CLI command in user namespace example
2 parents 645e8a7 + 21b6e34 commit c35b375

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)