skip to Main Content

While trying to run this command :

docker-compose up

I get this error :

Error response from daemon: user declined directory sharing C:Userspath_to_my_folder

I am working on windows 10

4

Answers


  1. You have to add C:Userspath_to_my_folder to Docker Filesharing.
    Go to docker dashboard -> settings ->Resources -> FileSharing.
    Add required folder and hit Apply & Restart.

    Login or Signup to reply.
  2. Normally, Docker will display a desktop notification asking for your confirmation before sharing the folder.

    Docker sharing confirmation notification

    However, if notifications are disabled (for example, if you enabled Focus Assist), the confirmation box won’t show and Docker will automatically decline the permission.

    Login or Signup to reply.
  3. Open Docker and follow this -> settings ->Resources -> FileSharing. Add required folder and hit Apply & Restart

    Login or Signup to reply.
  4. Answer from Kamran Huseyn worked for me perfectly on windows (this issue is not observed in my MacOS terminal).

    Open Docker and follow this -> settings ->Resources -> FileSharing. Add required folder and hit Apply & Restart!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search