Docker Community Forums

Share and learn in the Docker community.

Docker: Error response from daemon: Mounts denied: s

beta
docker

(Bharath90) #1

docker run -ti --volume=/Users/Desktop/tools_new/hello.js:/var/lib/cwl/stg1b1aced4-0ca4-4d3a-bec4-0c983418d892/hello.js:ro --volume=/var/folders/k5/vc1gzlf142q23lxs3bl0k9708qdh5z/T/tmp9nBnuX:/var/spool/cwl:rw --volume=/var/folders/k5/vc1gzlf142q23lxs3bl0k9708qdh5z/T/tmppcwP2v:/tmp:rw --workdir=/var/spool/cwl --read-only=true --user=292995263 --rm --env=TMPDIR=/tmp --env=HOME=/var/spool/cwl node:slim node /var/lib/cwl/stg1b1aced4-0ca4-4d3a-bec4-0c983418d892/hello.js

Docker Version: Version 1.12.0-rc4-beta19 (build: 10258)
c84feba3aa680f426b8fa66f688388611267cd53

Error:

The paths /var/folders/k5/vc1gzlf142q23lxs3bl0k9708qdh5z/T/tmp9nBnuX and /var/folders/k5/vc1gzlf142q23lxs3bl0k9708qdh5z/T/tmppcwP2v
are not shared from OS X and do not belong to the system.
You can configure shared paths from Docker -> Preference.

I did factory reset the docker and I see Users, Volume, Temp, Private in the files and sharing preferences. Should I add var into this preference?


(David Sheets) #2

I’m not sure what your intent is with trying to mount /var/folders/k5/vc1gzlf142q23lxs3bl0k9708qdh5z/T/tmp9nBnuX and similar. The path neither exists in the Linux VM nor has an ancestor (or self) exported from OS X.

If you are still having problems, please describe your use case and post back here with more information.

Thanks for participating in the Docker for Mac Beta!

David