Edit: I\'m on windows.
I am experimenting with docker-compose. I know that I should use a Dockerfile to copy a file into the container, but I want to solve
To add a users group to a directory in Windows follow these steps:
See also this Docker issue: https://github.com/docker/for-win/issues/3385
(I added the same problem few minutes ago.)
Make sure your docker is allowed to mount the directory C:\Users\[redacted]\Documents\Docker
In the Windows client, you can configure the docker to allow read/write on specific drives. This should fix your permissions problem.
In my case, it was already selected. I unchecked and checked the drive again. Apply the "change". It prompted me for my Windows password (which had change) and than the mount worked again.