Docker volume mount doesn't exist -


i'm running docker 1.11 on os x , i'm trying figure out local volumes being written. created docker volume running docker volume create --name mysql. ran docker volume inspect mysql , output following:

[     {         "name": "mysql",         "driver": "local",         "mountpoint": "/mnt/sda1/var/lib/docker/volumes/mysql/_data",         "labels": {}     } ] 

the issue /mnt/sda1/var/lib/docker/volumes/mysql/_data doesn't exist on machine. thought maybe issue didn't created until used container started container running docker run --name mysql -v mysql:/var/lib/mysql -e mysql_root_password=mysql -p -d mysql:5.7 , created database in mysql, mount point still doesn't exist. ran docker inspect mysql ensure it's using correct volume , got following:

... "mounts": [     {         "name": "mysql",         "source": "/mnt/sda1/var/lib/docker/volumes/mysql/_data",         "destination": "/var/lib/mysql",         "driver": "local",         "mode": "z",         "rw": true,         "propagation": "rprivate"     } ], ... 

at point i'm lost data being written. missing?

because docker based on linux, cannot run directly on windows/os x. instead, runs inside virtualbox virtual machine (a docker machine) runs linux operating system. that's why when install docker toolbox see virtualbox installed.

to see files , folders inside virtual machine, use

docker-machine ssh default 

default name of default docker machine.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -