Add support for pushing separately from building (`docker buildx push`)
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
Description
Request: buildx should support pushing built manifests separately from the build process. There should be a buildx equivalent of docker push, probably docker buildx push.
Use cases:
- Retry on container registry errors without attempting to build again (https://github.com/docker/buildx/discussions/2718#discussioncomment-10844802
- Building a manifest/images before the targeted container registry is available (https://github.com/docker/buildx/discussions/2718#discussioncomment-10844804)
- Avoiding changes to the image when created images are not bit per bit reproducible (https://github.com/docker/buildx/discussions/2718#discussioncomment-10844805, https://github.com/docker/buildx/discussions/2718#discussioncomment-10844807)
- Testing locally prior to pushing remotely (https://github.com/docker/buildx/discussions/2718#discussioncomment-10844806, https://github.com/docker/buildx/discussions/1976#discussion-5453706, https://github.com/docker/buildx/discussions/2718#discussioncomment-10844809)
Workarounds (all painful):
- Avoid buildx and use
docker build+docker push+docker manifest create+docker manifest push(the hard way) - Use a local "intermediary" registry (https://github.com/docker/buildx/discussions/2718#discussioncomment-10844816)
The previous issue (https://github.com/docker/buildx/issues/1152) got converted to a discussion (https://github.com/docker/buildx/discussions/2718) because the initial prompt was a question. To be clear, I'm not asking for alternatives with this issue - I'm asking for built-in buildx support.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing buildx build command and the behavior of docker push, using the linked discussions for the intended use cases. Determine how separately built manifests and images should be retained and addressed, then define tests that cover pushing them without rebuilding; the issue is done when docker buildx push supports those workflows.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100