Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 955 Bytes

README.md

File metadata and controls

40 lines (27 loc) · 955 Bytes

Generic Registries

crane

crane is a tool that allows you to interact with OCI repositories.

See recipes.md for additional recipes.

Getting images using the Catalog API

crane catalog <registry>

This command will query a registry for available repositories using the OCI Catalog API. NOTE: not all registries support this endpoint.

Registries we know this works with:

  • Google Container Registry
  • Google Artifact Registry
  • Harbor
  • Microsoft Container Registry

Examples

  • crane catalog gcr.io

Listing tags

crane ls <repo> --omit-digest-tags --full-ref
  • --omit-digest-tags suppresses .sbom/.att tags.
  • --full-ref prints the full image reference.