Rootless + userns-remap permission denied #42319
Labels
area/security/userns
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
version/20.10
Description
I am trying to use user namespaces in conjunction with rootless mode. I want my (non-root) user inside the container to be able to write to some volumes on the host. The directories on the host are owned by the same user running the rootless daemon.
Steps to reproduce the issue:
docker run --rm -ti -v $HOME:/host-home aghost7/ubuntu-dev-base:focal sh
Describe the results you received:
Describe the results you expected:
The user inside the container (with uid 1000) will be able to write to the
/host-home
volume.Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
/etc/subgid
:/etc/subuid
:~/.config/systemd/user/docker.service
:The text was updated successfully, but these errors were encountered: