Loading
0

docker:如何查看容器的挂载映射目录

被墙域名跳转QQ 851617266,可否收藏+评论+分享呢?

docker inspect container_name | grep Mounts -A 20

docker inspect container_id | grep Mounts -A 20

[[email protected] lib64]# docker ps
CONTAINER ID IMAGE           COMMAND               CREATED     STATUS     PORTS                                            NAMES
9cb8be23988c jenkins_yto:v1 "/sbin/tini -- /usr/…" 8 weeks ago Up 2 hours 0.0.0.0:50000->50000/tcp, 0.0.0.0:8081->8080/tcp jenkins_docker


[[email protected] lib64]# docker inspect jenkins_docker | grep Mounts -A 20
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/usr/bin/docker",
                "Destination": "/usr/bin/docker",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/usr/lib64/libltdl.so.7",
                "Destination": "/usr/lib/x86_64-linux-gnu/libltdl.so.7",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/var/jenkins_home",
                "Destination": "/var/jenkins_home",
[[email protected] lib64]# docker inspect 9cb8 | grep Mounts -A 20
        "Mounts": [
            {
                "Type": "bind",
                "Source": "/usr/bin/docker",
                "Destination": "/usr/bin/docker",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/usr/lib64/libltdl.so.7",
                "Destination": "/usr/lib/x86_64-linux-gnu/libltdl.so.7",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/var/jenkins_home",
                "Destination": "/var/jenkins_home",



 

声明:站长码字很辛苦啊,转载时请保留本声明及附带文章链接:https://www.zfcdn.xyz/showinfo-3-35857-0.html
被墙域名跳转QQ 851617266,可否收藏+评论+分享呢?
上一篇:常见程序(wordpress,dede,discuz)网页下方添加备案号,添加链接跳转到工信部
下一篇:记一次linux服务被黑挖矿排查被墙跳转