1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/nsenter.md

18 lines
532 B
Markdown
Raw Normal View History

2019-04-30 06:12:26 -04:00
# nsenter
> Run a new command in a running process' namespace.
> Particularly useful for docker images or chroot jails.
> More information: <https://github.com/jpetazzo/nsenter/>.
2019-04-30 06:12:26 -04:00
- 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}}`