4 ms·
The --uidmap and --gidmap options can map your regular user on the host to any specific user inside the container. These options may look to be a bit complicat
by eriksjolund 4y ago
The --uidmap and --gidmap options can map your regular user on the host to any specific user inside the container.
These options may look to be a bit complicated to use, but as soon as you understand how rootless Podman maps UIDs and GIDs it will be pretty straight forward.
I wrote two troubleshooting tips about how to use them:
https://github.com/containers/podman/blob/main/troubleshooting.md#33-container-creates-a-file-that-is-not-owned-by-the-users-regular-uid https://github.com/containers/podman/blob/main/troubleshooti...
https://github.com/containers/podman/blob/main/troubleshooting.md#34-passed-in-devices-or-files-cant-be-accessed-in-rootless-container-uidgid-mapping-problem https://github.com/containers/podman/blob/main/troubleshooti...