docker-composeでエラー – ‘Drive has not been shared’

2020年12月22日

エラー内容

docker-composeでupしたら下のようなエラーが出ました。


Creating network "standard_default" with the default driver
Creating standard_container ... error                                                        
ERROR: for standard_container  Cannot create container for service standard: b'Drive has not been shared'

ERROR: for standard  Cannot create container for service standard: b'Drive has not been shared'
ERROR: Encountered errors while bringing up the project.

解決方法

ファイル共有のvolumesが原因でホストがコンテナとのファイル共有を許可していないから起こるエラーらしいです。
「Docker Desktop For Windows」の場合は下記の手順で解決できました。
クジラマーク→settings→下の画面を表示→SharedDrivers→Sharedにチェックを入れる→Apply

無事解決しました。


docker-compose up -d
Creating standard_container ... done                             
YouTube

2020年12月22日