docker image inspect
Table of Contents:
Command Name:
docker image inspect
Description:
Display detailed information of one or more images
Syntax:
easywhatis$ docker image inspect --help
Usage: docker image inspect [OPTIONS] IMAGE [IMAGE...]
Display detailed information on one or more images
Options:
-f, --format string Format the output using the given Go template
easywhatis$
Example:
easywhatis$ docker image inspect ubuntu
[
{
"Id": "sha256:4e5021d210f65ebe915670c7089120120bc0a303b90208592851708c1b8c04bd",
"RepoTags": [
"ubuntu:latest"
],
"RepoDigests": [
"ubuntu@sha256:bec5a2727be7fff3d308193cfde3491f8fba1a2ba392b7546b43a051853a341d"
],
"Parent": "",
"Comment": "",
"Created": "2020-03-20T19:20:22.835345724Z",
"Container": "f35b3af588999f5c47b8132845d7e6c3a220cedac21a8dada926f41de36eef55",
"ContainerConfig": {
"Hostname": "f35b3af58899",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"/bin/sh",
"-c",
"#(nop) ",
"CMD [\"/bin/bash\"]"
],
"ArgsEscaped": true,
"Image": "sha256:257f42741ca08b6d23bb7cc030bb3ce32278879eb87d1f7c8195ddf9057807cb",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {}
},
"DockerVersion": "18.09.7",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"/bin/bash"
],
"ArgsEscaped": true,
"Image": "sha256:257f42741ca08b6d23bb7cc030bb3ce32278879eb87d1f7c8195ddf9057807cb",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 64205678,
"VirtualSize": 64205678,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/2d4502ff56d090bb612cad361ee6605af7a855a14eb70ea2956b4f42cc4099bd/diff:/var/lib/docker/overlay2/ee66f43479dd0165c1550e98ed03d68d8522b97fc55b16ca9f3b89f9d07737c0/diff:/var/lib/docker/overlay2/03bbc3625630597b8bd267c2404fb4ce85342608f8bef7e391647922d7c4b699/diff",
"MergedDir": "/var/lib/docker/overlay2/e6f343a5300452023bb2200c779f9e7c588d0b384dfdf61bb71744720906f11b/merged",
"UpperDir": "/var/lib/docker/overlay2/e6f343a5300452023bb2200c779f9e7c588d0b384dfdf61bb71744720906f11b/diff",
"WorkDir": "/var/lib/docker/overlay2/e6f343a5300452023bb2200c779f9e7c588d0b384dfdf61bb71744720906f11b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c8be1b8f4d60d99c281fc2db75e0f56df42a83ad2f0b091621ce19357e19d853",
"sha256:977183d4e9995d9cd5ffdfc0f29e911ec9de777bcb0f507895daa1068477f76f",
"sha256:6597da2e2e52f4d438ad49a14ca79324f130a9ea08745505aa174a8db51cb79d",
"sha256:16542a8fc3be1bfaff6ed1daa7922e7c3b47b6c3a8d98b7fca58b9517bb99b75"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]