From b287fc5df9757fb2e53d13764bf9765fa0166989 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Sun, 23 Aug 2026 23:16:10 +0300 Subject: [PATCH] unshare: add complete container example and fix example (#23648) --- pages/linux/unshare.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/linux/unshare.md b/pages/linux/unshare.md index 3b2c1f2b20..7d4c302e50 100644 --- a/pages/linux/unshare.md +++ b/pages/linux/unshare.md @@ -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}}`