From 79a10419c0f50adb6add166d9453f50d56255c20 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 17 Feb 2024 13:36:26 -0500 Subject: [PATCH] Fix up example description of podman-unshare.1.md Signed-off-by: Daniel J Walsh --- docs/source/markdown/podman-unshare.1.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/source/markdown/podman-unshare.1.md b/docs/source/markdown/podman-unshare.1.md index 3994ade0a3..f6ce214ad8 100644 --- a/docs/source/markdown/podman-unshare.1.md +++ b/docs/source/markdown/podman-unshare.1.md @@ -69,16 +69,24 @@ the exit codes follow the `chroot` standard, see below: ## EXAMPLE +Execute specified command in rootless user namespace: ``` $ podman unshare id uid=0(root) gid=0(root) groups=0(root),65534(nobody) +``` +Show user namespace mappings for rootless containers: +``` $ podman unshare cat /proc/self/uid_map /proc/self/gid_map 0 1000 1 1 10000 65536 0 1000 1 1 10000 65536 +``` + +Show rootless netns information in user namespace for rootless containers: +``` $ podman unshare --rootless-netns ip addr 1: lo: mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00