anybox / buttervolume

BTRFS Volume plugin for Docker
Apache License 2.0
82 stars 11 forks source link

userns-remap and buttervolume #29

Open drakmirv opened 5 years ago

drakmirv commented 5 years ago

I'm not able to get buttervolume to work properly when the docker daemon is in "userns-remap" mode. I've mapped "root" in my containers to userid 10,000. Volume creation happens but then when it tries to map it into the /var/lib/docker/10000.10000/btrfs/snapshots it seems to lose the mapping. Instead, the volume ends up with nobody:nogroup as the owner.

Here is the output: docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"rootfs_linux.go:58: mounting \\\"/var/lib/docker/10000.10000/plugins/a611740455740ff69f9721be7f755ebf100baf337248815c37faf52405f12c02/propagated-mount/volumes/test2\\\" to rootfs \\\"/var/lib/docker/10000.10000/btrfs/subvolumes/a1a2b78e7e08eeb182408aceaa5791a419b8c491e80de0969d93e85eff0c0515\\\" at \\\"/home\\\" caused \\\"stat /var/lib/docker/10000.10000/plugins/a611740455740ff69f9721be7f755ebf100baf337248815c37faf52405f12c02/propagated-mount/volumes/test2: permission denied\\\"\"": unknown. ERRO[0001] error waiting for container: context canceled