Docker: Error Response from Daemon: User Declined Directory Sharing

While trying to run this command :

docker-compose up

I get this error :

Error response from daemon: user declined directory sharing C:\Users\path_to_my_folder

I am working on windows 10

2

3 Answers

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

2

Normally, Docker will display a desktop notification asking for your confirmation before sharing the folder.

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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest