欢迎光临
我们一直在努力

Docker 查看容器映射路径的解决方法

使用以下命令:container_name容器的名字,也可以写容器的ID

docker inspect container_name | grep Mounts -A 20

查询结果:

[root@piaoyun.cc /]# docker inspect d2a6a115a42b | grep Mounts -A 20
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/work/mysql/conf",
                "Destination": "/etc/mysql/conf.d",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/work/mysql/logs",
                "Destination": "/logs",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/work/mysql/data",
                "Destination": "/var/lib/mysql",
赞(3)
未经允许不得转载:飘云 » Docker 查看容器映射路径的解决方法
分享到: 更多 (0)