Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Public repositories are readable without a token. The bearer token is a JWT minted from POST /v2/auth/token ({identifier, secret}); it expires, so refresh DOCKER_HUB_TOKEN when calls start returning 401.
  • Rate-limited: a 429 carries Retry-After (seconds). These limits are separate from image pull limits.
  • Lists page with page and page_size and return count, next and previous.

Endpoints

List a namespace’s repositories

Get a repository

List a repository’s tags

  • The docs list bearer auth for this endpoint; set DOCKER_HUB_TOKEN if an anonymous call is refused.

Get a tag

  • The docs list bearer auth for this endpoint; set DOCKER_HUB_TOKEN if an anonymous call is refused.