View previous topic :: View next topic |
Author |
Message |
shimitar Guru
Joined: 23 Nov 2003 Posts: 334 Location: Italy, Torino
|
Posted: Mon Jun 03, 2024 1:59 pm Post subject: Podman rootless: help |
|
|
Anybody expert with Podman here? (gentoo without SystemD)
i am running podman rootless, and while many containers runs fine, a few have a strange issue where files created in volumes belongs to veyr high UIDs. Everything works fine, but files on hard drive will belog to wrong UID.
For example, if my container runs as user "user1(uid:1001)" the files created belongs to uid 2591278. The container works just fine... It seems a UID mismatch, but using PUID/PGID doesn't seems to have any effect.
any hints? _________________ Willy Gardiol
willy@gardiol.org |
|
Back to top |
|
|
spica Guru
Joined: 04 Jun 2021 Posts: 331
|
Posted: Mon Jun 03, 2024 9:49 pm Post subject: |
|
|
what makes you think the number 2591278 is wrong? what you expect instead?
uid table is no more uint16. It is uint32 nowadays
Quote: | --uidmap=[flags]container_uid:from_uid[:amount]
Run the container in a new user namespace using the supplied UID mapping | https://docs.podman.io/en/latest/markdown/podman-run.1.html |
|
Back to top |
|
|
shimitar Guru
Joined: 23 Nov 2003 Posts: 334 Location: Italy, Torino
|
Posted: Tue Jun 04, 2024 4:31 am Post subject: |
|
|
Well the user uid is 1001 so I was expecting files crested by the container to had uid 1001 not that big number.
Things works, but how to get uid 1001 was the question _________________ Willy Gardiol
willy@gardiol.org |
|
Back to top |
|
|
|