From d8c9c5a18a4638b5537127a3adb1c399eb9b081c Mon Sep 17 00:00:00 2001 From: lbonanomi <5369016+lbonanomi@users.noreply.github.com> Date: Tue, 30 Apr 2019 06:12:26 -0400 Subject: [PATCH] nsenter: add page (#2958) --- pages/linux/nsenter.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/linux/nsenter.md 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}}`