The docker manifest command works with image manifests and manifest lists. It can inspect registry metadata, create a local manifest list from platform-specific image tags, and push that list to a registry. section 12.3
Use the command in a multi-platform publishing workflow:
- Inspect an existing image with docker manifest inspect; the output includes image digests, CPU architectures, and operating systems without pulling images locally. section 12.3
- Create a manifest list that groups the platform-specific image tags under one image tag. section 12.3
- Push the manifest list to the registry so one tag represents multiple platform variants. section 12.3
# create a manifest list with a name # followed by all the tags it contains: docker manifest create "$dockerId/ch12-folder-list:2e" ` "$dockerId/ch12-folder-list:2e-linux-amd64" ` "$dockerId/ch12-folder-list:2e-linux-arm64" ` "$dockerId/ch12-folder-list:2e-linux-arm" # push the manifest to Docker Hub: docker manifest push "$dockerId/ch12-folder-list:2e" # now browse to your page on Docker Hub and check the image
Create a manifest list from amd64, arm64, and arm tags, then push it to Docker Hub. section 12.3
