1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:22:09 +02:00

nsenter: add --all example and refresh (#8003)

This commit is contained in:
Julia Evans 2022-05-08 17:26:45 -04:00 committed by GitHub
parent 7698f52edf
commit 39afceec30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,16 +2,20 @@
> Run a new command in a running process' namespace.
> Particularly useful for docker images or chroot jails.
> More information: <https://github.com/jpetazzo/nsenter/>.
> More information: <https://manned.org/nsenter>.
- Run command in existing processes network namespace:
- Run a specific command using the same namespaces as an existing process:
`nsenter -t {{pid}} -n {{command}} {{command_arguments}}`
`nsenter --target {{pid}} --all {{command}} {{command_arguments}}`
- Run a new command in an existing processes ps-table namespace:
- Run a specific command in an existing process's network namespace:
`nsenter -t {{pid}} -p {{command}} {{command_arguments}}`
`nsenter --target {{pid}} --net {{command}} {{command_arguments}}`
- Run command in existing processes IPC namespace:
- Run a specific command in an existing process's PID namespace:
`nsenter -t {{pid}} -i {{command}} {{command_arguments}}`
`nsenter --target {{pid}} --pid {{command}} {{command_arguments}}`
- Run a specific command in an existing process's IPC namespace:
`nsenter --target {{pid}} --ipc {{command}} {{command_arguments}}`