Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

podman: add uid and gid options to keep-id #15389

Merged
merged 3 commits into from
Aug 31, 2022

Commits on Aug 30, 2022

  1. infra: remove dead code

    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    cd62606 View commit details
    Browse the repository at this point in the history
  2. podman: add uid and gid options to keep-id

    add two new options to the keep-id user namespace option:
    
    - uid: allow to override the UID used inside the container.
    - gid: allow to override the GID used inside the container.
    
    For example, the following command will map the rootless user (that
    has UID=0 inside the rootless user namespace) to the UID=11 inside the
    container user namespace:
    
    $ podman run --userns=keep-id:uid=11 --rm -ti  fedora cat /proc/self/uid_map
             0          1         11
            11          0          1
            12         12      65525
    
    Closes: containers#15294
    
    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    e015c9e View commit details
    Browse the repository at this point in the history
  3. docs: move userns options to separate file

    Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
    giuseppe committed Aug 30, 2022
    Configuration menu
    Copy the full SHA
    8637548 View commit details
    Browse the repository at this point in the history