3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Docker for Windows】Error response from daemon: user declined directory sharing C:\Users\path_to_my_folder

Last updated at Posted at 2022-09-29

問題

Windows10で docker compose up -d をすると下記のエラーが発生しました。

$ docker compose up -d

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

確認

Docker for Windowsを確認します。

ダッシュボード > settings > Resources > FileSharing

ファイル共有しようとしたパス C:\Users\path_to_my_folder が登録されていないことを確認します。
手動で登録してもOKですが通常であればファイル共有の通知が来て許可すれば登録されるはずです。

通知が来ない原因

Windows10に集中モード(Focus Assist)機能があります。
この設定が有効になっているとDockerからの通知が来なくなり、ファイル共有を許可されないままとなります。

まとめ

集中しないでください。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?