Skip to content

Commit

Permalink
Merge pull request #21702 from rhatdan/docs31
Browse files Browse the repository at this point in the history
[CI:DOCS] Fix up example description of podman-unshare.1.md
  • Loading branch information
openshift-merge-bot[bot] authored Feb 19, 2024
2 parents 6c77b6d + 79a1041 commit 6abf785
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/source/markdown/podman-unshare.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <LOOPBACK,UP,LOWER_UP> 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
Expand Down

0 comments on commit 6abf785

Please sign in to comment.