泊坞窗卷位于何处? [英] Where docker volumes are located?

查看:92
本文介绍了泊坞窗卷位于何处?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在macOS上使用Docker机器时,需要知道Docker卷位于何处.安装使用的是boot2docker,因此VM可以在后面运行.

Need to know where docker volumes are located when using the docker machine on macOS. The installation is using boot2docker, so the VM works behind.

示例:

docker volume create test-data

docker inspect显示一条路径,但是我在哪里可以找到特定的(物理)位置?

docker inspect shows a path, but where can I find the specific (physical) location?

推荐答案

它位于虚拟机内部,不能从主机直接访问.

It’s inside the virtual machine and isn’t directly accessible from the host.

Debug级命令将为您提供一条路径,但它们实际上仅用于紧急调试,不能用于常规用途.如果您有办法在VM中获得外壳程序,则可以看到该路径,但实际上您不应该直接在其中访问文件,也不应常规地 docker inspect 进行任何操作.

Debug-level commands like docker volume inspect will give you a path, but they really are only for emergency debugging and not for routine use. If you have a way to get a shell in the VM you can see that path, but you really shouldn’t be directly accessing files there, and you shouldn’t be routinely docker inspecting anything.

这篇关于泊坞窗卷位于何处?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆