Hi,
I’n using Docker toolbox whith my Windows 10 Family licence, and i can’t build my docker-compose due to “invalid characters for a local volume name” in my Volume Definition.
I explain :
When i execute this command line, everythings is ok
docker run -d -p 8080:80 -p 3306:3306 -v /c/Users/Eric/dev/stages-api/:/app tutum/lamp
But, when i want to migrate this in a docker-compose file like this
web :
image: tutum/lamp
ports:
- "8080:80"
- "3306:3306"
volumes:
- /c/Users/Eric/dev/stages-api/:/app
- /c/Users/Eric/dev/stages-api-compose:/etc/apache2/sites.enabled
i’ve got the error
ERROR: for stagesapicompose_web_1 Cannot create container for service web: create \c\Users\Eric\dev\stages-api: “\c\Users\Eric\dev\stages-api” includes invalid characters for a local volume name, only “[a-zA-Z0-9][a-zA-Z0-9_.-]” are allowed. If you intended to pass a host directory, use absolute path
Have-you got an idea please ?
Thank you.
Eric