The first path segment is the registry only if it contains . or : or
is localhost; there is no implicit docker.io, so library/alpine is
rejected rather than silently resolved against a registry the caller never
named. The origin is https: unless the host appears in insecureHosts.
A repository-only reference (no tag, no digest) is valid for tags().
Parses
[oci://]host[:port]/repo[/more][:tag][@sha256:<hex>].The first path segment is the registry only if it contains
.or:or islocalhost; there is no implicitdocker.io, solibrary/alpineis rejected rather than silently resolved against a registry the caller never named. The origin ishttps:unless the host appears ininsecureHosts. A repository-only reference (no tag, no digest) is valid fortags().