Skip to content

Add --annotation flag to docker compose publish#13852

Open
Mohataseem89 wants to merge 2 commits into
docker:mainfrom
Mohataseem89:add-publish-annotation
Open

Add --annotation flag to docker compose publish#13852
Mohataseem89 wants to merge 2 commits into
docker:mainfrom
Mohataseem89:add-publish-annotation

Conversation

@Mohataseem89

Copy link
Copy Markdown

Fixes: #13739

Adds a repeatable --annotation key=value flag to docker compose publish allowing users to attach custom OCI annotations to the published manifest (and to the image index as well, when --app is used in addition to the existing default annotations like org.opencontainers.image.created

added a unit test (cmd/compose/publish_test.go) covering valid input, malformed input missing =, and an empty slice. ran make build, make test, and go vet ./... locally all passing. docs regenerated via make docs

@Mohataseem89 Mohataseem89 requested a review from a team as a code owner June 18, 2026 09:39
@Mohataseem89 Mohataseem89 requested review from glours and ndeloof June 18, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --annotation option to 'docker compose publish'

1 participant