Docker

查看映射docker容器的路径

docker inspect container_name | grep Mounts -A 20(container_name :容器的名字,也可以写容器的id

        "Mounts": [
            {
                "Type": "bind",
                "Source": "/var/jenkins_node",
                "Destination": "/var/jenkins_home",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],
        "Config": {
            "Hostname": "01da9821d5b6",
            "Domainname": "",
            "User": "root",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "50000/tcp": {},
                "8080/tcp": {}
            },

  

posted @ 2021-06-04 10:44  无怨  阅读(35)  评论(0编辑  收藏  举报