Skip to content

Commit 0ca1a07

Browse files
authored
Merge pull request #48267 from ayushpatil2122/patch-16
Changed the command for Attaching to the shell container
2 parents 11f47e9 + 585c1c6 commit 0ca1a07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/en/docs/tasks/configure-pod-container/share-process-namespace.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Process namespace sharing is enabled using the `shareProcessNamespace` field of
4040
1. Attach to the `shell` container and run `ps`:
4141

4242
```shell
43-
kubectl attach -it nginx -c shell
43+
kubectl exec -it nginx -c shell -- /bin/sh
4444
```
4545

4646
If you don't see a command prompt, try pressing enter. In the container shell:

0 commit comments

Comments
 (0)