docker / docker/compose

Add --annotation option to 'docker compose publish'

Open
#13,739 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/feature status/0-triage
Dominant language
Go
Stars
38.2k
Forks
5.8k
Avg merge
2d 14h
Merged PRs (30d)
55

Description

Description

docker compose publish supports the options described here.
I would suggest adding the option --annotation like the build of an image.

I see that the manifest of a published docker-compose.yml has

"annotations": {
  "org.opencontainers.image.created": "2026-04-14T14:04:34Z"
}

but I would like the possiiblity to add custom vnd.xxxx annotations to the manifest while publishing docker-compose.yml

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with docs/reference/compose_publish.md and the existing docker compose publish command entry point. Trace how publish options are defined and passed to the image manifest, then verify that a custom --annotation value is accepted and appears on the published manifest; add or update focused tests if the existing command tests cover this path.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
56/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.