parseImageReference
Function: parseImageReference()
parseImageReference(
reference):ImageReference
Defined in: packages/oci/src/reference.ts:41
Parse an image reference like Docker does
The first path component is a registry when it contains a . or a :, or is localhost.
Docker Hub single-component repositories get the library/ prefix and the tag defaults to latest.
Parameters
reference
string
the image reference, node:22-slim, ghcr.io/org/app:1.0, localhost:5000/app@sha256:...
Returns
the parsed reference