■ docker image inspect 명령을 사용해 이미지 상세 정보를 구하는 방법을 보여준다.
1. [명령 프롬프트]를 실행한다.
2. 아래 명령을 실행한다.
▶ 실행 명령
1 2 3 4 5 |
C:\>docker image inspect centos:latest ※ centos:latest : <이미지명>[:<태그명>] |
3. 실행 결과는 아래와 같다.
▶ 실행 결과
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 |
[ { "Id": "sha256:1e1148e4cc2c148c6890a18e3b2d2dde41a6745ceb4e5fe94a923d811bf82ddb", "RepoTags": [ "centos:latest" ], "RepoDigests": [ "centos@sha256:184e5f35598e333bfa7de10d8fb1cebb5ee4df5bc0f970bf2b1e7c7345136426" ], "Parent": "", "Comment": "", "Created": "2018-12-06T00:21:07.135655444Z", "Container": "1fdbb0fcc184eb795364f7aa5fdc00299d0a2b90d8e26b4696217c22da7f983f", "ContainerConfig": { "Hostname": "1fdbb0fcc184", "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:b3a68d99a4a4195c6c97c2345b83cb2d6cfd1661247816ac403cf0b584437ad7", "Volumes": null, "WorkingDir": "", "Entrypoint": null, "OnBuild": null, "Labels": { "org.label-schema.build-date": "20181205", "org.label-schema.license": "GPLv2", "org.label-schema.name": "CentOS Base Image", "org.label-schema.schema-version": "1.0", "org.label-schema.vendor": "CentOS" } }, "DockerVersion": "17.06.2-ce", "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:b3a68d99a4a4195c6c97c2345b83cb2d6cfd1661247816ac403cf0b584437ad7", "Volumes": null, "WorkingDir": "", "Entrypoint": null, "OnBuild": null, "Labels": { "org.label-schema.build-date": "20181205", "org.label-schema.license": "GPLv2", "org.label-schema.name": "CentOS Base Image", "org.label-schema.schema-version": "1.0", "org.label-schema.vendor": "CentOS" } }, "Architecture": "amd64", "Os": "linux", "Size": 201779604, "VirtualSize": 201779604, "GraphDriver": { "Data": { "MergedDir": "/var/lib/docker/overlay2/e36fa6faf4890471313d6b5179693c3f6031b096eac7fe48e9e92f42e179cd23/merged", "UpperDir": "/var/lib/docker/overlay2/e36fa6faf4890471313d6b5179693c3f6031b096eac7fe48e9e92f42e179cd23/diff", "WorkDir": "/var/lib/docker/overlay2/e36fa6faf4890471313d6b5179693c3f6031b096eac7fe48e9e92f42e179cd23/work" }, "Name": "overlay2" }, "RootFS": { "Type": "layers", "Layers": [ "sha256:071d8bd765171080d01682844524be57ac9883e53079b6ac66707e192ea25956" ] }, "Metadata": { "LastTagTime": "0001-01-01T00:00:00Z" } } ] |