mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 06:02:18 +02:00
nsenter: add namespaces examples (#8084)
add examples for multiple namespaces, procfs specified namespace
This commit is contained in:
parent
ab5154719a
commit
59e789fc73
1 changed files with 8 additions and 0 deletions
|
@ -19,3 +19,11 @@
|
|||
- Run a specific command in an existing process's IPC namespace:
|
||||
|
||||
`nsenter --target {{pid}} --ipc {{command}} {{command_arguments}}`
|
||||
|
||||
- Run a specific command in an existing process's UTS, time, and IPC namespaces:
|
||||
|
||||
`nsenter --target {{pid}} --uts --time --ipc -- {{command}} {{command_arguments}}`
|
||||
|
||||
- Run a specific command in an existing process's namespace by referencing procfs:
|
||||
|
||||
`nsenter --pid=/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue