Press "Enter" to skip to content

Docker的一些命令

查看容器内进程

docker top myphp72 | grep php

查看容器挂载情

docker inspect myphp72

"Mounts": [
            {
                "Type": "bind",
                "Source": "/mydata/php/php.ini",
                "Destination": "/usr/local/etc/php/php.ini",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            },
            {
                "Type": "bind",
                "Source": "/mydata/nginx/html",
                "Destination": "/usr/share/nginx/html",
                "Mode": "",
                "RW": true,
                "Propagation": "rprivate"
            }
        ],

发表评论