Docker: Error response from daemon: Mounts denied:

I am a university student learning to use docker for using Debian Linux containers for programming. I am getting this following error while I am trying to open the image.

docker: Error response from daemon: Mounts denied:
The path /c/Users/andrewt
is not shared from OS X and is not known to Docker.
You can configure shared paths from Docker -> Preferences… -> File Sharing.
See for more info.

The command I used is docker run -it --cap-add=SYS_PTRACE -v /c/Users/andrewt:/root comp1511/sh

Any help would be appreciated and eagerly waiting for someones reply.


have u resolved this problem. i encountered the same error, stil dont know how to fix it