Skip to content

Commit

Permalink
Merge pull request #19172 from eriksjolund/fix_underscore_in_man_page
Browse files Browse the repository at this point in the history
[CI:DOCS] uidmap man pages: fix corrupt italics
  • Loading branch information
openshift-merge-robot authored Jul 10, 2023
2 parents b713fe3 + eec4382 commit 7cd1fb7
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions docs/source/markdown/options/uidmap.container.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ option conflicts with the **--userns** and **--subuidname** options. This
option provides a way to map host UIDs to container UIDs. It can be passed
several times to map different ranges.

The _from_uid_ value is based upon the user running the command, either rootful or rootless users.
The *from_uid* value is based upon the user running the command, either rootful or rootless users.
* rootful user: *container_uid*:*host_uid*:*amount*
* rootless user: *container_uid*:*intermediate_uid*:*amount*

Expand All @@ -23,13 +23,13 @@ If for example _amount_ is **4** the mapping looks like:

| host UID | container UID |
| ---------- | ---------------- |
| _from_uid_ | _container_uid_ |
| _from_uid_ + 1 | _container_uid_ + 1 |
| _from_uid_ + 2 | _container_uid_ + 2 |
| _from_uid_ + 3 | _container_uid_ + 3 |
| *from_uid* | *container_uid* |
| *from_uid* + 1 | *container_uid* + 1 |
| *from_uid* + 2 | *container_uid* + 2 |
| *from_uid* + 3 | *container_uid* + 3 |

When **podman <<subcommand>>** is called by an unprivileged user (i.e. running rootless),
the value _from_uid_ is interpreted as an "intermediate UID". In the rootless
the value *from_uid* is interpreted as an "intermediate UID". In the rootless
case, host UIDs are not mapped directly to container UIDs. Instead the mapping
happens over two mapping steps:

Expand Down Expand Up @@ -59,11 +59,11 @@ If for example _amount_ is **5** the second mapping step looks like:

| intermediate UID | container UID |
| ------------------ | ---------------- |
| _from_uid_ | _container_uid_ |
| _from_uid_ + 1 | _container_uid_ + 1 |
| _from_uid_ + 2 | _container_uid_ + 2 |
| _from_uid_ + 3 | _container_uid_ + 3 |
| _from_uid_ + 4 | _container_uid_ + 4 |
| *from_uid* | *container_uid* |
| *from_uid* + 1 | *container_uid* + 1 |
| *from_uid* + 2 | *container_uid* + 2 |
| *from_uid* + 3 | *container_uid* + 3 |
| *from_uid* + 4 | *container_uid* + 4 |

When running as rootless, Podman uses all the ranges configured in the _/etc/subuid_ file.

Expand Down

0 comments on commit 7cd1fb7

Please sign in to comment.