Docker查看容器构建信息


 description

通过命令行查看docker容器的构建信息,默认返回json格式

 command

docker inspect mysql

 parameter

docker :  Docker 是一个开源的应用容器引擎,让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中
inspect :  提供有关由 Docker 控制的构造的详细信息。

 result

[
    {
        "Id": "47012ac4015dfd743fa4840052d4e2e43d1072885c3c913b10eb099938a3ef37",
        "Created": "2021-12-27T02:41:07.598779153Z",
        "Path": "docker-entrypoint.sh",
        "Args": [
            "mysqld"
        ],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 2278,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2021-12-27T02:41:08.07878405Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:3218b38490cec8d31976a40b92e09d61377359eab878db49f025e5d464367f3b",
Was this helpful?

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.