Docker Community Forums

Share and learn in the Docker community.

Permission denied for mounted location

Hi
After mountind a physical location . I am unable to modify it from within container.
I ran following command
docker run --rm -it -v ${PWD}:/www alpine
…inside container …
cd www
mkdir folder
mkdir: can’t create directory ‘folder’: Permission denied

Inspect : info
“Mounts”: [
{
“Type”: “bind”,
“Source”: “/host_mnt/d/Users/kunal.verma/Desktop/fin/exp/d3”,
“Destination”: “/www”,
“Mode”: “”,
“RW”: true,
“Propagation”: “rprivate”
}

Thanks,
Kunal

Hi @kunal94vverma

Because your directory /host_mnt/d/Users/kunal.verma/Desktop/fin/exp/d3 on host machine can not be written. Please check permission or attribute of this directory.