nsenter Command Examples

Run a new command in a running process' namespace. Particularly useful for Docker images or chroot jails. More information: https://manned.org/nsenter.

nsenter --target {{pid}} --all {{command}} {{command_arguments}}

nsenter --target {{pid}} --{{mount|uts|ipc|net|pid|user|cgroup}} {{command}} {{command_arguments}}

nsenter --target {{pid}} --uts --time --ipc -- {{command}} {{command_arguments}}

nsenter --pid=/proc/{{pid}}/pid/net -- {{command}} {{command_arguments}}