feat(docker): Add Docker registry support - #7
Merged
Conversation
added 8 commits
July 30, 2026 14:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
dockeras a fourth repository format: push and pull with any Docker client, browselayers and platforms in the UI, proxy another registry, reclaim storage, and migrate
docker repositories from Nexus.
The registry API is mounted at
/v2on the host root, because a Docker client buildsits own URLs from the image reference and cannot be pointed at a path prefix. The
repository name is the first segment of the image instead, so
repo.example.com/images/team/api:1.4is the
team/apiimage of theimagesrepository, and one host serves every repositoryon one port with no connector. A default docker repository can be set so a bare
reference works too.
A tag is a component and its manifest is an asset, so version listing, search, traffic
and storage accounting all come for free. What needed new tables is the part the asset
model cannot express: a layer is shared between tags, so per-version size and safe
deletion need an explicit manifest-to-blob relation. That relation is also what lets the
UI say how much of a tag is unique to it, and what makes the storage sweep safe.
Docker repositories default to a mixed policy. Their tags carry arbitrary suffixes,
and a real one like
0.1.9-swaggerui-stagingis neither a release nor a prerelease byany rule worth writing.
Verified against real container images throughout:
docker saveoutput pushed and pulledbyte for byte, a buildkit multi-platform index with its attestation child, and Docker Hub
proxied for real. The release image is now mirrored to our own instance with
imagetools, which preserves digests, so both registries serve identical bytes.docs/docker.mdcovers using it, anddocs/migrating.mdgains the docker section.Note:
e85af45("Make link clickable and point to github") was already on this branch andis unrelated to docker. Say the word if you would rather it went separately.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.