Closed felix2908 closed 2 years ago
@giuseppe PTAL
systemd-homed already runs in a user namespace. Could you share the output of cat /proc/self/uid_map
?
[felix@arch ~]$ cat /proc/self/uid_map
0 0 4294967295
Thanks. How does the user namespace created by Podman look like? You can check it with podman unshare cat /proc/self/uid_map
[felix@arch ~]$ podman unshare cat /proc/self/uid_map
0 60001 1
1 600000 65536
Thanks.
Do you get any error if you try the following command?
podman unshare sh -c 'mkdir ~/.local/share/containers/storage/test; chown 0:12 ~/.local/share/containers/storage/test'
[felix@arch ~]$ podman unshare sh -c 'mkdir ~/.local/share/containers/storage/test; chown 0:12 ~/.local/share/containers/storage/test'
chown: changing ownership of '/home/felix/.local/share/containers/storage/test': Invalid argument
I don't think there is anything we can do from Podman side to work in such environment. You might want to try ignore_chown_errors = "true"
in storage.conf
but that affects how images are stored since all the files are owned by root.
thx for your help!
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Try to pull the fedora-toolbox image.
It fails on a systemd-homed account
Describe the results you received:
Describe the results you expected:
On my (dev) normal Unix account it works. On my (felix) systemd-homed account it fails.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):