ERROR: for wp_wordpress_1 Cannot create container for service wordpress: invalid volume specification: ‘E:\docker\wp\html:/var/www/html:rw’

0 votes

I am trying to launch one wordpress container in my windows system. But I got this below error.

Starting wp_mariadb_1 … done Creating wp_wordpress_1 … error
ERROR: for wp_wordpress_1 Cannot create container for service wordpress: invalid volume specification: ‘E:\docker\wp\html:/var/www/html:rw’: invalid mount config for type “bind”: bind source path does not exist: e:\docker\wp\html

How can I solve this error?

Apr 14 in Docker by akhtar
• 10,580 points
132 views

1 answer to this question.

0 votes

Hi@akhtar,

As you are using Windows system, you need to set COMPOSE_CONVERT_WINDOWS_PATHS=1 to your environmental variables.

$ Env:COMPOSE_CONVERT_WINDOWS_PATHS=1

Hope this will work.

answered Apr 14 by MD
• 23,050 points

Related Questions In Docker

0 votes
1 answer

Docker error "ERROR: for nginx Cannot start service nginx: oci runtime error"

I had faced a similar issue and ...READ MORE

answered Sep 24, 2019 in Docker by anonymous
• 51,850 points
1,653 views
0 votes
1 answer

Docker error cannot delete docker container, conflict: unable to remove repository reference

First, remove the container names $ sudo docker ...READ MORE

answered Jul 31, 2018 in Docker by Kalgi
• 51,850 points
1,213 views
0 votes
1 answer

Error: Cannot access server in docker container

Try to publish your port: docker run -p ...READ MORE

answered Sep 6, 2018 in Docker by Tyrion anex
• 8,370 points
76 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 57,530 points
538 views
0 votes
1 answer

Job for docker.service failed because the control process exited with error code.

Hi@akhtar, Before starting your docker service check if ...READ MORE

answered Apr 14 in Docker by MD
• 23,050 points
200 views
0 votes
1 answer