Answer the question
In order to leave comments, you need to log in
How do volumes work in docker under windows 10 wsl?
The time that I worked with Docker, I worked only under Linux. Now I decided to try it under Windows, I installed WSL.
Under Linux, for example, I ran mysql as follows and everything worked, the database remained on the host.
docker run -d -e MYSQL_ROOT_PASSWORD=12345 -p 3306:3306 -v /home/developer/mysql-data:/var/lib/mysql mysql
docker run -d -e MYSQL_ROOT_PASSWORD=12345 -p 3306:3306 -v /mnt/d/mysql-data:/var/lib/mysql mysql
2021-09-18T09:20:12.317091Z 0 [ERROR] [MY-010295] [Server] Could not set file permission for private_key.pem
2021-09-18T09:20:12.318444Z 0 [ERROR] [MY-010119] [Server] Aborting
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question