diff --git a/pages/linux/nsenter.md b/pages/linux/nsenter.md new file mode 100644 index 0000000000..8b16e12b88 --- /dev/null +++ b/pages/linux/nsenter.md @@ -0,0 +1,17 @@ +# nsenter + +> Run a new command in a running process' namespace. +> Particularly useful for docker images or chroot jails. +> Homepage: . + +- 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}}`