目标:
$ docker volume create hello_world
$ docker volume ls
DRIVER VOLUME NAME
local hello_world
$ docker inspect hello_world
[
{
"CreatedAt": "2018-11-19T05:37:03Z",
"Driver": "local",
"Labels": {},
"Mountpoint": "/mnt/sda1/var/lib/docker/volumes/hello_world/_data",
"Name": "hello_world",
"Options": {},
"Scope": "local"
}
]
$ cd /mnt
bash: cd: /mnt: No such file or directory
如果我无法CD到Mountpoint
,那么它将保存在哪里?
也尝试过
$ docker-machine ssh default
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
_ _ ____ _ _
| |__ ___ ___ | |_|___ \ __| | ___ ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__| < __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|
Boot2Docker version 18.06.1-ce, build HEAD : c7e5c3e - Wed Aug 22 16:27:42 UTC 2018
Docker version 18.06.1-ce, build e68fc7a
docker@default:~$ cd /mnt/sda1/var/lib/docker/volumes/hello_world/_data
-sh: cd: can't cd to /mnt/sda1/var/lib/docker/volumes/hello_world/_data
我正在使用Windows 8,Docker ToolBox