domain: docs.docker.com · 5 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗
Documented steps
Annotate the image manifest by default: docker buildx build --annotation org.opencontainers.image.source=https://example.com/repo -t myapp:latest .
Target a specific layer type with a type prefix: index: for the image index/manifest list, manifest: for the platform manifest, manifest-descriptor: for the descriptor entry — e.g. --annotation "index:org.opencontainers.image.authors=dev@example.com".
Combine multiple types with commas: --annotation "index,manifest-descriptor:foo=bar".
Scope to one platform: --annotation "manifest[linux/amd64]:foo=bar" (wildcards are not supported).
Official docs: https://docs.docker.com/reference/cli/docker/buildx/build/
Known gotchas
Without a type prefix the annotation applies to the manifest (image) level only.
Platform-qualified annotations support an explicit [arch] but not wildcard platforms.
Annotations on the index are only meaningful/visible when building multi-arch and pushing; a single --load image carries the manifest annotation.
Give your agent this knowledge — and 17,200+ more routes
One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?