Inspect a specific image manifest within the list
In the previous step, we inspected the manifest list for alpine:latest
. This list contained multiple entries, each pointing to a specific image manifest for a different architecture. Now, let's inspect one of these specific image manifests.
To inspect a specific manifest, we need its digest. From the output of docker manifest inspect alpine:latest
, find the digest
for the architecture that matches your LabEx VM (which is amd64
). The digest will look something like sha256:...
.
Once you have the digest for the amd64
manifest, you can inspect it using the docker manifest inspect
command followed by the image name and the digest, separated by an @
symbol.
Replace YOUR_AMD64_DIGEST
with the actual digest you found for the amd64
platform in the previous step's output.
docker manifest inspect alpine@YOUR_AMD64_DIGEST
For example, if the amd64
digest was sha256:f70734b6a266dcb51c52a820c34f3204cc6897445f6510b7a5be74d30a72f227
, the command would be:
docker manifest inspect alpine@sha256:f70734b6a266dcb51c52a820c34f3204cc6897445f6510b7a5be74d30a72f227
This command will output a JSON document that represents the specific image manifest for the amd64
architecture. This manifest contains details about the image layers (identified by their digests) and the image configuration (also identified by a digest).
You will see output similar to this:
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.v2+json",
"config": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"size": 1510,
"digest": "sha256:..."
},
"layers": [
{
"mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
"size": 2803897,
"digest": "sha256:..."
}
]
}
This output shows the structure of a single image manifest, listing the configuration and the layers that make up the image for that specific architecture.