I am running Docker for Windows and kubernetes.
Whenever I restart my computer all of the data is lost on the Docker for Windows VM. Am I doing something wrong?
I am mounting persistent volumes
to hostPath
/mnt/data/mysql
location.
I am trying to run a mysql
database. I am able to write and read from the database, the data exists in /mnt/data/mysql
- I checked by accessing the VM using
docker run --net=host --ipc=host --uts=host --pid=host -it --security-opt=seccomp=unconfined --privileged --rm -v /:/host alpine /bin/sh
chroot /host
I also tried creating dummy files in /mnt/data
which were erased as well after the machine restart.