Skip to content

Commit 39f4578

Browse files
committed
tasks/userns: Don't use a debug container
Signed-off-by: Rodrigo Campos <rodrigoca@microsoft.com>
1 parent 2a76253 commit 39f4578

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. Add a debugging container and attach to it and run `readlink /proc/self/ns/user`:
75+
1. Exec into the pod and run `readlink /proc/self/ns/user`:
7676

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

8181
Run this command:

0 commit comments

Comments
 (0)