wordpress-docker-compose icon indicating copy to clipboard operation
wordpress-docker-compose copied to clipboard

Can't run docker-compose because of volume specification error

Open Rwarlock opened this issue 5 years ago • 1 comments

Every time I try to run docker-compose up I get the following error.

E:\agency-development>docker-compose up
agency-development_db_1 is up-to-date
Creating agency-development_wordpress_1 ... error

ERROR: for agency-development_wordpress_1  Cannot create container for service wordpress: invalid volume specification: '/e/agency-development/wp-content:/var/www/html/wp-content:rw'

ERROR: for wordpress  Cannot create container for service wordpress: invalid volume specification: '/e/agency-development/wp-content:/var/www/html/wp-content:rw'
ERROR: Encountered errors while bringing up the project.

I have also added COMPOSE_CONVERT_WINDOWS_PATHS=1 as the env variable

Rwarlock avatar Dec 22 '19 18:12 Rwarlock

This issue might be cause because the shared drives are not enabled in docker for windows. Take a look here https://github.com/docker/for-win/issues/77#issuecomment-246778932

nezhar avatar Apr 30 '20 21:04 nezhar