1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2024-10-30 18:17:57 +01:00

nsenter: add page (#2958)

This commit is contained in:
lbonanomi 2019-04-30 06:12:26 -04:00 committed by Owen Voke
parent 49e97b7879
commit d8c9c5a18a

17
pages/linux/nsenter.md Normal file
View file

@ -0,0 +1,17 @@
# 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}}`