码迷,mamicode.com
首页 > 其他好文 > 详细

03-5 docker镜像管理之查看镜像的详细信息

时间:2020-11-06 01:58:46      阅读:23      评论:0      收藏:0      [点我收藏+]

标签:npm   var   metadata   ef6   inspect   glob   arc   yar   管理   

03-5 docker镜像管理之查看镜像的详细信息

docker image inspect [命令参数] [镜像名称]:[镜像版本]
docker inspect [命令参数] [镜像ID]

作用:
查看本地一个或多个镜像的详细信息

实例

qwe@ubuntu:~$ docker image inspect hyperledger/caliper:0.4.0 
[
    {
        "Id": "sha256:6491b4ec891d26678d11fd5472f19931dfa945b2e7214647911b127fb96de357",
        "RepoTags": [
            "hyperledger/caliper:0.4.0"
        ],
        "RepoDigests": [
            "hyperledger/caliper@sha256:7e353e250455385891c07c67de62077d9056b75fae2023602cc39eab00907eb5"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2020-10-02T08:25:09.574799353Z",
        "Container": "d742a35d29551c58fcf12215df18291a5376a98e3f2dbbb9652270ea41f514df",
        "ContainerConfig": {
            "Hostname": "travis-job-ad4511a8-3be1-4d72-b871-c3b67e87885f",
            "Domainname": "",
            "User": "node:node",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/home/node/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "NODE_VERSION=10.16.3",
                "YARN_VERSION=1.17.3",
                "NODE_PATH=/home/node/.npm-global/lib/node_modules",
                "CALIPER_WORKSPACE=/hyperledger/caliper/workspace",
                "CALIPER_BIND_ARGS=-g"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "CMD [\"--version\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:ac317e71901b0da6a98d48669b3396c052ed99f99e546820b4a51342ab280bd7",
            "Volumes": null,
            "WorkingDir": "/hyperledger/caliper/workspace",
            "Entrypoint": [
                "caliper"
            ],
            "OnBuild": null,
            "Labels": {}
        },
        "DockerVersion": "18.06.0-ce",
        "Author": "",
        "Config": {
            "Hostname": "",
            "Domainname": "",
            "User": "node:node",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/home/node/.npm-global/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "NODE_VERSION=10.16.3",
                "YARN_VERSION=1.17.3",
                "NODE_PATH=/home/node/.npm-global/lib/node_modules",
                "CALIPER_WORKSPACE=/hyperledger/caliper/workspace",
                "CALIPER_BIND_ARGS=-g"
            ],
            "Cmd": [
                "--version"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:ac317e71901b0da6a98d48669b3396c052ed99f99e546820b4a51342ab280bd7",
            "Volumes": null,
            "WorkingDir": "/hyperledger/caliper/workspace",
            "Entrypoint": [
                "caliper"
            ],
            "OnBuild": null,
            "Labels": null
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 356493465,
        "VirtualSize": 356493465,
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/d5e6efe4f651e705c78c1749ac422a3aea275e71796174f1a00660982139a28a/diff:/var/lib/docker/overlay2/c3a933c61f8e5629002ff84de65f15b9249e18d2f87773235c4b2ab66f3c6b98/diff:/var/lib/docker/overlay2/026bbb9b065170d636e236b4699c8c4ea106ef7f256fe8d96b99e8e4fa84a372/diff:/var/lib/docker/overlay2/957e4fee3084e4d383b7020a44b452565a4422bbb61548d44aa160de0135dd7d/diff:/var/lib/docker/overlay2/50214d0ac8fb7f59f2ca13746210e03360e64975fe824c13f521e142ebe073d0/diff:/var/lib/docker/overlay2/daa0fa1d8efad471bae1db48cf3ca60ba2a9cd79febcf6113bbfe4581ee85d98/diff",
                "MergedDir": "/var/lib/docker/overlay2/fd4d161c5bf307daefb97fc8930f10175ef82af269f7523c731fdf6c49d05c33/merged",
                "UpperDir": "/var/lib/docker/overlay2/fd4d161c5bf307daefb97fc8930f10175ef82af269f7523c731fdf6c49d05c33/diff",
                "WorkDir": "/var/lib/docker/overlay2/fd4d161c5bf307daefb97fc8930f10175ef82af269f7523c731fdf6c49d05c33/work"
            },
            "Name": "overlay2"
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:f1b5933fe4b5f49bbe8258745cf396afe07e625bdab3168e364daf7c956b6b81",
                "sha256:a3b85ad42b98d38a269880cc23d842bd267a630ab8554c032613ce6d9ba2476f",
                "sha256:77306e58a4bd17b11d4151957d5ae677480e01e3a5db7797d1c53a7313c9c37e",
                "sha256:dd108d5734de5775b9d4bdb550feb3133fd0ad6cbc18d5dbba65032a24cc5af2",
                "sha256:9fcb1e877efa65834000ce5a6346b3f40b06fe88583c10ac6c550a717c1b3b30",
                "sha256:b3971e08d137de81c1bd76ddab925a0cfe9538dc626218d8ca85eef69c8c4c5f",
                "sha256:0f27d3f8d8442c65b5d8e02907cbf8d29f5e2e5c97f8fd6e6476fc6fdfed4bc8"
            ]
        },
        "Metadata": {
            "LastTagTime": "0001-01-01T00:00:00Z"
        }
    }
]

03-5 docker镜像管理之查看镜像的详细信息

标签:npm   var   metadata   ef6   inspect   glob   arc   yar   管理   

原文地址:https://www.cnblogs.com/zhengyuhu/p/13931218.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!