Skip to content

registry: add reference #22497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

craig-osterhout
Copy link
Contributor

Description

Re-add registry reference from point in time of deletion at #18390, not upstream.

Related issues or tickets

ENGDOCS-2577

Reviews

  • Technical review
  • Editorial review
  • Product review

@craig-osterhout craig-osterhout added the area/hub Issue affects Docker Hub label Apr 25, 2025
@github-actions github-actions bot added area/compose Relates to docker-compose.yml spec or docker-compose binary area/api Relates to Docker API docs labels Apr 25, 2025
Copy link

netlify bot commented Apr 25, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 410cb85
🔍 Latest deploy log https://app.netlify.com/sites/docsdocker/deploys/681bc2b1805a0e00087111bd
😎 Deploy Preview https://deploy-preview-22497--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Signed-off-by: Craig <craig.osterhout@docker.com>
Signed-off-by: Craig <craig.osterhout@docker.com>
Signed-off-by: Craig <craig.osterhout@docker.com>
@craig-osterhout craig-osterhout requested a review from a team May 7, 2025 20:52
@craig-osterhout craig-osterhout added status/review and removed area/compose Relates to docker-compose.yml spec or docker-compose binary labels May 7, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the black lines are really hard to see on dark mode in the docs site

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just curious, is there a reason we aren’t using an OpenAPI spec to generate this documentation? It might help reduce complexity, ensure consistency, and make it easier to integrate with Redocly like the other references are

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the reason why this is separate from Docker Hub API

The API's documented there are API's specific to "Hub" - organizations, access tokens, etc.

These API's are Registry specific API's that are applicable to the OCI Distribution project that we forked. But not all of the API's from the project are enabled in our version so this is documenting the ones that are.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding using OpenAPI spec, this PR is a minimum-effort change to quickly reintroduce previously existing content that was already in Markdown. Migrating it to OpenAPI in a followup PR would definitely be nice. Even the existing Markdown content could use some cleanup. My main goal here was to update it just enough to get it through the build checks for now, and then iterate.

Copy link
Collaborator

@sarahsanders-docker sarahsanders-docker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before I do a more thorough review, I left a comment about why we are not using an OpenAPI spec to generate the documentation here

@@ -0,0 +1,1552 @@
---
title: Docker Registry HTTP API V2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This API is obsolete, and replaced by the OCI distribution spec; is there a reason we want to duplicate the specification?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all of the spec endpoints are supported by us. We are just providing documentation of the OCI endpoints that are supported with our version of distribution.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can rename this so it doesn't get confused as being the main spec? I'm not familiar enough, but maybe something like Supported Docker Registry API for Docker Hub (still keep the linktitle as Registry API though.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Relates to Docker API docs area/hub Issue affects Docker Hub status/review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants