laravel-docker-app icon indicating copy to clipboard operation
laravel-docker-app copied to clipboard

Error on Docker-compose up...can't find directory for Volume Mount

Open TimHuey opened this issue 3 years ago • 1 comments

`vscode ➜ /com.docker.devenvironments.code (main) $ docker-compose up Creating comdockerdevenvironmentscode_redis_1 ... error Creating comdockerdevenvironmentscode_app_1 ... Creating comdockerdevenvironmentscode_mysql_1 ...

Creating comdockerdevenvironmentscode_mysql_1 ... error Creating comdockerdevenvironmentscode_app_1 ... error ERROR: for comdockerdevenvironmentscode_mysql_1 Cannot create container for service mysql: invalid mount config for type "bind": bind source path does not exist: /com.docker.devenvironments.code/docker/data/mysql

ERROR: for comdockerdevenvironmentscode_app_1 Cannot create container for service app: invalid mount config for type "bind": bind source path does not exist: /com.docker.devenvironments.code/app

ERROR: for redis Cannot create container for service redis: invalid mount config for type "bind": bind source path does not exist: /com.docker.devenvironments.code/docker/data/redis

ERROR: for mysql Cannot create container for service mysql: invalid mount config for type "bind": bind source path does not exist: /com.docker.devenvironments.code/docker/data/mysql

ERROR: for app Cannot create container for service app: invalid mount config for type "bind": bind source path does not exist: /com.docker.devenvironments.code/app ERROR: Encountered errors while bringing up the project. vscode ➜ /com.docker.devenvironments.code (main) $ `

Screenshot 2021-12-17 133047

TimHuey avatar Dec 17 '21 19:12 TimHuey

Turns out it looks like the periods in the directory com.docker.devenvironments.code is the culprit. If you use a directory without the periods in the name it resolves correctly. Now I just have to figure out how to change that directory name and then I can use the DevEnvironments.

TimHuey avatar Dec 28 '21 22:12 TimHuey