Docker Community Forums

Share and learn in the Docker community.

Volum not created

Hello my friends,

When execut the following command :

docker run --name some-mysql -v /my/own/datadir:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag

The directory /var/lib/mysql is not created in my own directory follow /my/own/datadir

My own directory is C:/Users/asus/Documents/docker/dockerMysql

Then my command is

docker run --name some-mysql -v /C:/Users/asus/Documents/docker/dockerMysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:tag

Thanks my friends