mirror of
https://github.com/tldr-pages/tldr
synced 2026-08-26 14:13:36 +01:00
unshare: add complete container example and fix example (#23648)
This commit is contained in:
@@ -13,4 +13,8 @@
|
||||
|
||||
- Execute a command as a child process without sharing mounts, processes, or networks:
|
||||
|
||||
`sudo unshare {{[-minf|--mount --pid --net --fork]}} {{command}} {{argument1 argument2 ...}}`
|
||||
`sudo unshare {{[-mpnf|--mount --pid --net --fork]}} {{command}} {{argument1 argument2 ...}}`
|
||||
|
||||
- Create a container manually:
|
||||
|
||||
`sudo unshare {{[-puinmf|--pid --uts --ipc --net --mount --fork]}} chroot {{path/to/new_root}} {{/bin/sh}}`
|
||||
|
||||
Reference in New Issue
Block a user