nezhar / wordpress-docker-compose

Easy Wordpress development with Docker and Docker Compose
MIT License
1.84k stars 1.31k forks source link

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

Open Rwarlock opened 4 years ago

Rwarlock commented 4 years ago

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

nezhar commented 4 years ago

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