以下の内容はhttps://bnsgt.hatenablog.com/entry/2022/07/18/194021より取得しました。


【Docker】ERROR: for 〇〇〇 Cannot start service wordpress: Mounts denied: The path ××× is not shared from the host and is not known to Docker.が出た時の対応

ローカルのファイルをマウントしようとした時に、以下のエラーが出た。 Docker側からローカルディレクトリにアクセスできる権限が無いってことだと思う。

ERROR: for 〇〇〇  Cannot start service wordpress: Mounts denied: 
The path ××× is not shared from the host and is not known to Docker.

エラーの下に続き以下の通り書いてあるまんまDockerの画面設定を変更すれば、うまく行った。

You can configure shared paths from Docker -> Preferences... -> Resources -> File Sharing.
See https://docs.docker.com/docker-for-mac for more info.
  1. Docker -> Preferences... -> Resources -> File Sharing.
  2. +アイコンをクリックし、プロジェクトのディレクトリを選択する。



以上の内容はhttps://bnsgt.hatenablog.com/entry/2022/07/18/194021より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14