I have this container based on debian:jessie
(but this is not very relevant as I had the same issue with alpine:3.3
). I get to the point where I need to
mount --bind /htdocs/www /home/user/example.com/www
and I get
mount: permission denied
I can't find anything in any kernel log, and -vvv
yields nothing interesting. I obviously can do this on the host (with any other pair of subtree/node). In my example above /htdocs/www is the mountpoint of a Docker volume, but it doesn't appear like it's of any importance, as I can't mount --bind
any pair of subtree/node inside the container.