访问Docker容器中的目标卷

时间:2017-07-17 20:55:56

标签: docker dockerfile docker-machine docker-volume

我创建了一个Docker卷并挂载到容器主机。现在我尝试将(sh到容器)连接到容器并访问目标,如下所述。

"Name": “xxxxxxxxxxxxxxxxxxxxx”,
            "Source": "/var/lib/docker/volumes/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/_data",
            "Destination": "/Host-data",
            "Driver": "local",
            "Mode": "",
            "RW": true,
            "Propagation": ""

当我尝试访问" /主机数据"时,我收到消息说"无法cd到/ Host-data"

命令:

# cd /Host-data   
 (I have tried with "/Host-data", '/Host-data' as well)

这不可能吗?或者我所遵循的步骤不正确?如果这不正确,我们如何将数据复制到此目的地并查看它们?

0 个答案:

没有答案