查看docker的manifest
我们可以通过开启docker cli 的体验选项,查看image 的manifest
配置
~/.docker/config.json
{"experimental":"enabled"}
命令
docker manifest inspect alpine:latest
效果
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1509,
"digest": "sha256:a187dde48cd289ac374ad8539930628314bc581a481cdb41409c9289419ddb72"
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2803255,
"digest": "sha256:aad63a9339440e7c3e1fff2b988991b9bfb81280042fa7f39a5e327023056819"
}
]
}
参考资料
https://docs.docker.com/engine/reference/commandline/manifest_inspect/