computer_knowledge_notes/Software/进程管理/unshare.md

1.0 KiB

Usage: unshare [options] [ [...]]

Run a program with some namespaces unshared from the parent.

Options: -m, --mount[=] unshare mounts namespace -u, --uts[=] unshare UTS namespace (hostname etc) -i, --ipc[=] unshare System V IPC namespace -n, --net[=] unshare network namespace -p, --pid[=] unshare pid namespace -U, --user[=] unshare user namespace -C, --cgroup[=] unshare cgroup namespace -f, --fork fork before launching --mount-proc[=

] mount proc filesystem first (implies --mount) -r, --map-root-user map current user to root (implies --user) --propagation slave|shared|private|unchanged modify mount propagation in mount namespace -s, --setgroups allow|deny control the setgroups syscall in user namespaces

-h, --help display this help -V, --version display version

For more details see unshare(1).