Error message:
ERROR: for test_redis Cannot create container for service redis: status code not OK but 500: {"Message":"Unhandled exception: Drive has not been shared"}
ERROR: for test_db Cannot create container for service db: status code not OK but 500: {"Message":"Unhandled exception: Drive has not been shared"}
ERROR: for redis Cannot create container for service redis: status code not OK but 500: {"Message":"Unhandled exception: Drive has not been shared"}
ERROR: for db Cannot create container for service db: status code not OK but 500: {"Message":"Unhandled exception: Drive has not been shared"}
ERROR: Encountered errors while bringing up the project.
Copy the code
Problem analysis and solution:
The reason is that I have done file mapping for BOTH DB and Redis, as shown below
File sharing needs to be configured because files need to be shared with the host. Configure file sharing on Windows as shown in the following figure
The attached:
docker version:
Version: 19.03.8 API Version: 1.40 Go Version: go1.12.17 Git commit: AFacb8b Built: Wed Mar 11 01:23:10 2020 OS/Arch: Windows/AMD64 Experimental: false Server: Docker Engine - Community Engine: Version: 19.03.8 API Version: 1.40 (minimum version 1.12) Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:29:16 2020 OS/Arch: Linux/amd64 Experimental: false containerd: Version: v1.2.13 GitCommit: 7 ad184331fa3e55e52b890ea95e65ba581ae3429 runc: Version: 1.0.0 - rc10 GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd docker - init: Version: 0.18.0 GitCommit: fec3683Copy the code