wrong permissions on idmapped volumes #16724
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
#16249 enabled the
idmap
option for volumes.podman still chowns the volume to the containers uid/gid though which causes the container to not be able to use it
Steps to reproduce the issue:
podman run --rm -it --mount type=volume,src=testvol,dst=/mnt,rw,idmap alpine touch /mnt/test
Describe the results you received:
touch: /mnt/test: Permission denied
Describe the results you expected:
That it created the file successfully
Additional information you deem important (e.g. issue happens only occasionally):
inside the container:
outside:
podman volume inspect testvol
before start:podman volume inspect testvol
after start:Output of
podman version
:Output of
podman info
:Built from 480c7fb
The text was updated successfully, but these errors were encountered: