mirror of https://github.com/CrimsonTome/tldr.git
18 lines
524 B
Markdown
18 lines
524 B
Markdown
|
# nsenter
|
||
|
|
||
|
> Run a new command in a running process' namespace.
|
||
|
> Particularly useful for docker images or chroot jails.
|
||
|
> Homepage: <https://github.com/jpetazzo/nsenter/>.
|
||
|
|
||
|
- Run command in existing processes network namespace:
|
||
|
|
||
|
`nsenter -t {{pid}} -n {{command}} {{command_arguments}}`
|
||
|
|
||
|
- Run a new command in an existing processes ps-table namespace:
|
||
|
|
||
|
`nsenter -t {{pid}} -p {{command}} {{command_arguments}}`
|
||
|
|
||
|
- Run command in existing processes IPC namespace:
|
||
|
|
||
|
`nsenter -t {{pid}} -i {{command}} {{command_arguments}}`
|