Index ソフト・ハード Dockerタスク | images |
hello-world Cmd UpperDir overlay2 |
$ docker inspect hello-world:latest
[
{
"Id": "sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412", (64文字)
"RepoTags": [
"hello-world:latest"
], (イメージに割り振られたタグ)
"RepoDigests": [
"hello-world@sha256:2498fce14358aa50ead0cc6c19990fc6ff866ce72aeb5546e1d59caac3d0d60f"
], (イメージ内容に対するハッシュ値、タグは変えられるが、この値は内容が変わらない限り同一)
"Parent": "", (親イメージの情報、"" の記述は依存関係を持つ親イメージが無い。)
"Comment": "",
"Created": "2021-09-23T23:47:57.442225064Z",
"Container": "8746661ca3c2f215da94e6d3f7dfdcafaff5ec0b21c9aff6af3dc379a82fbc72",
"ContainerConfig": {
"Hostname": "8746661ca3c2",
"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 [\"/hello\"]"
], (コンテナ実行時に引数が無い場合、コンテナ内で実行するコマンドを指定)
"Image": "sha256:b9935d4e8431fb1a7f0989304ec86b3329a99a25f5efdc7f09f3f8c41434ca6d",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {}
},
"DockerVersion": "20.10.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": [
"/hello"
],
"Image": "sha256:b9935d4e8431fb1a7f0989304ec86b3329a99a25f5efdc7f09f3f8c41434ca6d",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 13256,
"VirtualSize": 13256,
"GraphDriver": {
"Data": {
"MergedDir": "/var/lib/docker/overlay2/03d9c78b864f13c1352b96270b1380676a497b6f1c57d34ff4837fb5da160583/merged",
"UpperDir": "/var/lib/docker/overlay2/03d9c78b864f13c1352b96270b1380676a497b6f1c57d34ff4837fb5da160583/diff",
(UpperDir、hello-world イメージの実体を保存しているディレクトリ、環境によるランダムな文字列)
"WorkDir": "/var/lib/docker/overlay2/03d9c78b864f13c1352b96270b1380676a497b6f1c57d34ff4837fb5da160583/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:e07ee1baac5fae6a26f30cabfe54a36d3402f96afda318fe0a96cec4ca393359"
]
},
"Metadata": {
"LastTagTime": "0001-01-01T00:00:00Z"
}
}
]
overlay2 # ls -la /var/lib/docker/overlay2/03d9c78b864f13c1352b96270b1380676a497b6f1c57d34ff4837fb5da160583/diff 合計 16 drwxr-xr-x 2 root root 19 12月 19 23:25 . drwx--x--- 3 root root 47 12月 19 23:25 .. -rwxrwxr-x 1 root root 13256 9月 24 08:47 hello (今回のhello-world:latestイメージのファイルシステムは、hello というバイナリだけ) |
All Rights Reserved. Copyright (C) ITCL |