docker image inspect

From wikieduonline
Jump to navigation Jump to search

docker image inspect

Example[edit]

docker image inspect 7c7eb6f8bd67 or docker image inspect grafana/grafana
[
   {
       "Id": "sha256:7c7eb6f8bd67af2ffae758564f3724f61084cf2947c737fd648f76d33668fc93",
       "RepoTags": [
           "grafana/grafana:latest"
       ],
       "RepoDigests": [
           "grafana/grafana@sha256:b409a69218ca5990b61e33fe00121c94b2f9b5a7ec2f3118c703454c26067020"
       ],
       "Parent": "",
       "Comment": "",
       "Created": "2020-04-23T11:02:57.346374106Z",
       "Container": "34233af6f2c799c6650c260e9346281eb2059dd54b033c85fabf1a0216c71a6e",
       "ContainerConfig": {
           "Hostname": "34233af6f2c7",
           "Domainname": "",
           "User": "grafana",
           "AttachStdin": false,
           "AttachStdout": false,
           "AttachStderr": false,
           "ExposedPorts": {
               "3000/tcp": {}
           },
           "Tty": false,
           "OpenStdin": false,
           "StdinOnce": false,
           "Env": [
               "PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
               "GF_PATHS_CONFIG=/etc/grafana/grafana.ini",
               "GF_PATHS_DATA=/var/lib/grafana",
               "GF_PATHS_HOME=/usr/share/grafana",
               "GF_PATHS_LOGS=/var/log/grafana",
               "GF_PATHS_PLUGINS=/var/lib/grafana/plugins",
               "GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
           ],
           "Cmd": [
               "/bin/sh",
               "-c",
               "#(nop) ",
               "ENTRYPOINT [\"/run.sh\"]"
           ],
           "ArgsEscaped": true,
           "Image": "sha256:2c9ddba008c12295b87f1f704deacc0c38559dd6a330d8fe2dab616c6967e421",
           "Volumes": null,
           "WorkingDir": "/usr/share/grafana",
           "Entrypoint": [
               "/run.sh"
           ],
           "OnBuild": null,
           "Labels": {}
       },
       "DockerVersion": "18.06.0-ce",
       "Author": "",
       "Config": {
           "Hostname": "",
           "Domainname": "",
           "User": "grafana",
           "AttachStdin": false,
           "AttachStdout": false,
           "AttachStderr": false,
           "ExposedPorts": {
               "3000/tcp": {}
           },
           "Tty": false,
           "OpenStdin": false,
           "StdinOnce": false,
           "Env": [
               "PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
               "GF_PATHS_CONFIG=/etc/grafana/grafana.ini",
               "GF_PATHS_DATA=/var/lib/grafana",
               "GF_PATHS_HOME=/usr/share/grafana",
               "GF_PATHS_LOGS=/var/log/grafana",
               "GF_PATHS_PLUGINS=/var/lib/grafana/plugins",
               "GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
           ],
           "Cmd": null,
           "ArgsEscaped": true,
           "Image": "sha256:2c9ddba008c12295b87f1f704deacc0c38559dd6a330d8fe2dab616c6967e421",
           "Volumes": null,
           "WorkingDir": "/usr/share/grafana",
           "Entrypoint": [
               "/run.sh"
           ],
           "OnBuild": null,
           "Labels": null
       },
       "Architecture": "amd64",
       "Os": "linux",
       "Size": 233409873,
       "VirtualSize": 233409873,
       "GraphDriver": {
           "Data": {
               "LowerDir": "/var/lib/docker/overlay2/5136d72f0b75ffa5f8d1ff677043e0b4a1750eb559626235462be254d75292bd/diff:/var/lib/docker/overlay2/e7717555347dd6add55a2dbf296f4a68ea7e003c31f1bac13ed2e8099e01093d/diff:/var/lib/docker/overlay2/5eae3c124bf24553d22e827ec61baf5c2124640e3d65db0c3826252795ce16a9/diff:/var/lib/docker/overlay2/5332a22b41dcd6ed6cc30afa2e6aefb3568dd60b9d9ef978f09bd8e320c2b9ab/diff:/var/lib/docker/overlay2/df188a08c272c8e7781a7dbb8fb08cd46157e09d906561fabedd81aa122d601a/diff:/var/lib/docker/overlay2/b0d36b693d9386a5e3f14619c5ad6ebabe8ad14d4d47d3c9f6097069b1135bc8/diff:/var/lib/docker/overlay2/c63c93b35b067680e0c0414db7adfb1cfe6fb0846e057f60f33961576651d435/diff",
               "MergedDir": "/var/lib/docker/overlay2/a447f821c0889394b0d46bf1938980451927a437c488e6fe2677b56e603e184c/merged",
               "UpperDir": "/var/lib/docker/overlay2/a447f821c0889394b0d46bf1938980451927a437c488e6fe2677b56e603e184c/diff",
               "WorkDir": "/var/lib/docker/overlay2/a447f821c0889394b0d46bf1938980451927a437c488e6fe2677b56e603e184c/work"
           },
           "Name": "overlay2"
       },
       "RootFS": {
           "Type": "layers",
           "Layers": [
               "sha256:531743b7098cb2aaf615641007a129173f63ed86ca32fe7b5a246a1c47286028",
               "sha256:956f748aa5b661691177078d362c42db44314a6f07b85fb60e2ffc0e53612318",
               "sha256:6967ed3d455979d0ac4be890742fbaf9f2dc28b7de2398a4a49bffa145b6b52f",
               "sha256:6338f44668afa12860fb99e93bcf2b6d92a747134597b6a3d41bdbb6936f5108",
               "sha256:f4803fa7e94a46de208a13bc563a194f3223f93f7f012480f7d035f764c65d02",
               "sha256:cd04defea21264e667b4052cf7d2abe00db61b6fceab0a1b11eb1e50997767c3",
               "sha256:7fd8f79f315056caf54a4fd295cb55f77a6dd791e137350dbe978d83259a5ffb",
               "sha256:ea8af299aa03f4d3e09ba2a488f56f0c5c7b9d9545cafeb292cab360eace6a21"
           ]
       },
       "Metadata": {
           "LastTagTime": "0001-01-01T00:00:00Z"
       }
   }
]


Related command[edit]

See also[edit]

Advertising: