Loading
0

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

技术小学生微信公众号
腾讯云服务器大促销。
华为服务器

docker inspect container_name | grep Mounts -A 20

docker inspect container_id | grep Mounts -A 20

[root@localhost 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


[root@localhost 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",
[root@localhost 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://blog.tag.gg/showinfo-3-35857-0.html
亲爱的:若该文章解决了您的问题,可否收藏+评论+分享呢?
上一篇:常见程序(wordpress,dede,discuz)网页下方添加备案号,添加链接跳转到工信部
下一篇:记一次linux服务被黑挖矿排查记录