nsenter
Run a new command in a running process' namespace. Particularly useful for Docker images or chroot jails.
More info →Options (6)
-t, --targetbooleanRun a specific command using the same namespaces as an existing process
nsenter {{[-t|--target]}} {{pid}} {{[-a|--all]}} {{command}} {{command_arguments}}-a, --allbooleanRun a specific command using the same namespaces as an existing process
nsenter {{[-t|--target]}} {{pid}} {{[-a|--all]}} {{command}} {{command_arguments}}-u, --utsbooleanRun a specific command in an existing process's UTS, time, and IPC namespaces
nsenter {{[-t|--target]}} {{pid}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}-T, --timebooleanRun a specific command in an existing process's UTS, time, and IPC namespaces
nsenter {{[-t|--target]}} {{pid}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}-i, --ipcbooleanRun a specific command in an existing process's UTS, time, and IPC namespaces
nsenter {{[-t|--target]}} {{pid}} {{[-u|--uts]}} {{[-T|--time]}} {{[-i|--ipc]}} -- {{command}} {{command_arguments}}-pbooleanRun a specific command in an existing process's namespace by referencing procfs
nsenter {{[-p|--pid=]}}/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}Examples (4)
Run a specific command using the same namespaces as an existing process
Run a specific command in an existing process's mount|UTS|IPC|network|PID|user|cgroup|time namespace
Run a specific command in an existing process's UTS, time, and IPC namespaces