1. Introduction

Every container workflow starts from a name. A compose file says image: postgres:16, a Kubernetes manifest says image: registry.k8s.io/pause:3.9, a CI step says image: ghcr.io/o/r:v1@sha256:…. Before an image is pulled, its credentials looked up, its vulnerabilities scanned, its signature checked or its digest pinned, a program splits that string into a registry host, a repository path, a tag and a digest. The split looks easy. It is not, because Docker’s familiar names leave the registry implicit and fill in defaults.

The rules live in code rather than a specification. The OCI Distribution Specification defines the repository-name and tag grammars that a registry accepts [1], but not the short forms that people write. Those are defined by Docker’s reference package, now maintained as distribution/reference [2], which Docker and containerd use. Its rules are: if the first of several path components contains a . or a : or is localhost, it is the registry; otherwise the registry is docker.io; a Docker Hub repository with one component gets the prefix library/; and a reference with neither tag nor digest gets the tag latest. A digest may follow a tag, as in name:tag@sha256:…, and then both are kept, with the digest deciding what is pulled. Repository components are lower case, separated by ., _, __ or runs of -; tags are at most 128 characters from [A-Za-z0-9_.-] and may not start with . or -; digests have a registered algorithm and a hex encoding of the right length.

Libraries in other languages re-implement these rules. When they differ, two tools can disagree about which registry an image comes from, which credentials to send, or whether a digest pin is present at all. A scanner, a signer and a runtime that parse the same string differently can each check a different thing. This paper measures how seven parsers in four languages read the same references as distribution/reference. Our contributions are:

  • a case list of 80 references in six groups, each with the reference package’s reading;
  • a verdict matrix for seven libraries, with every deviating output listed;
  • a sample of 2,435 image: values from six public repositories at pinned commits;
  • a reproducible package pinned at one commit, which re-runs everything in seconds and gave byte-identical results on two runs and on a clean export.

Specifications and the reference implementation. The OCI Distribution Specification [1] gives the regular expressions for repository names and tags that registries accept, and the OCI image specification defines digests. Neither defines the familiar form with an implicit registry. distribution/reference [2] carries the grammar in its source and documentation and is the de facto definition; Docker and containerd use it, and parse-docker-image-name is a GopherJS build of an earlier version of the same package [3].

Ports and their tests. Several libraries describe themselves as ports of the reference package: docker-image-py in Python, @swimlane/docker-reference in TypeScript and container_image_dist_ref in Rust, whose author tests it against the Go package’s behaviour [4]. These tests check one port against one reference, which is the right method, but they are not published as a comparison, and libraries that are not ports, such as go-containerregistry, docker-py and docker-parse-image, are not covered.

Short-name resolution. Podman and the containers/image library do not map unqualified names to Docker Hub by default; they consult configured search registries and short-name aliases [5]. That is a deliberate policy difference, not a parsing difference, and it is outside our scope: all subjects here claim Docker’s rules.

Differential testing. The method is differential testing [6] with the reference implementation as the oracle, in the harness style of earlier Pubroot work on HTTP header handling [9].

We found no published comparison of image reference parsers against the reference package or against real-world references.

3. Method

Subjects (default options, public APIs). Go 1.27.3: the reference, distribution/reference v0.6.0 ParseNormalizedNamed followed by TagNameOnly; and (1) go-containerregistry v0.22.1 name.ParseReference with default options. CPython 3.13.5: (2) docker-image-py 0.2.0 Reference.parse_normalized_named; (3) docker-py 7.2.0, through the path its images.pull() takes when given a string without a separate tag: utils.parse_repository_tag splits off a tag or digest and auth.resolve_repository_name splits the registry from the repository. Node.js v24.22.1: (4) @swimlane/docker-reference 2.0.1 parseFamiliarName, the parser its README names for familiar references; (5) docker-parse-image 3.0.1; (6) parse-docker-image-name 3.0.0. Rust 1.85.1: (7) oci-spec 0.10.0 distribution::Reference via FromStr, which oci-client 0.18 re-exports as oci_client::Reference. We also tried container_image_dist_ref 0.3.0 and left it out: it mirrors the reference package’s non-normalising Parse, which does not apply the familiar-name rules, so user/app would count as registry user against it by design.

docker-parse-image has a single field for whatever follows the first : or @ after the last /. We treat it as a digest when the separator in the input is @ and as a tag otherwise. parse-docker-image-name returns an empty object for an error; @swimlane/docker-reference, oci-spec and the Python and Go libraries raise or return errors.

Normalisation (common.py). Each result is reduced to (registry, repository, tag, digest), and Docker’s documented defaults are applied to every result alike, so a library that leaves a default implicit is not penalised: a missing registry is docker.io, index.docker.io (the legacy host go-containerregistry reports) is docker.io, a one-component Docker Hub repository gets library/, and a reference with neither tag nor digest gets the tag latest. A library is therefore classed by what it says the image is, not by how it spells it.

Cases. gen_cases.py writes 80 references in six groups (Appendix A). Docker Hub forms (B01–B12) cover bare, tagged, library/-prefixed and fully qualified names, user repositories, other registries and a three-component path. Registry hosts (H01–H16) cover localhost with and without a port, a single-label host with a port, IPv4 and IPv6 addresses, a dotted host, single-label first components with and without a dash (which are Docker Hub users, not hosts), an upper-case host, localhost alone, localhost:5000 alone (which the rules read as repository localhost with tag 5000), and an empty port. Digests (D01–D12) cover a plain digest, a tag with a digest, a short digest, sha512, an unregistered algorithm, upper-case hex, trailing junk, an empty digest, two digests and an algorithm with +. Tags (T01–T10) cover allowed punctuation, a leading ., - or _, the 128-character limit and one beyond, upper case, an empty tag, two colons and a slash. Repository names (N01–N20) cover upper case, __ and ___, .., .-, a leading -, trailing, double and leading slashes, a 256-character name, non-ASCII, a space, the empty string, an eleven-component path, _, --, a trailing space and a trailing __. Practical references (L01–L10) are common images on Docker Hub, Microsoft, Google, AWS, Kubernetes, GitHub and Quay registries, and a digest-pinned Redis.

One case is open. For a-b_c.d/e--f (N15) the reference returns an empty registry and keeps the whole string as the repository: its first step treats a-b_c.d as a host because it contains a dot, and the full grammar then fails to match it as a host, so the result is neither a Docker Hub name nor a usable registry. We report the libraries’ readings but do not score them.

Classes. A gives the same (registry, repository, tag, digest) as the reference. W gives a different tuple. R is a library error on a string the reference parses. L means the library parses a string the reference rejects, so a caller that relies on it to validate input gets no warning.

Harness. run_all.sh builds the Go and Rust parsers (cargo build --locked), runs all runners on the case list and on the real-world sample, classes the results and writes results/. Python packages are pinned in py/requirements.txt, Node packages by a committed lockfile installed with npm ci, Go modules by go.sum and Rust crates by Cargo.lock.

Reproduce.

git clone https://github.com/buildngrowsv/pubroot-pilots
cd pubroot-pilots && git checkout b289db88db5d4874fc48df41f4b6f43d8ff4a065
cd image-refs
python3 -m venv .venv && .venv/bin/pip install -r py/requirements.txt
cd js && npm ci && cd ..
PY=.venv/bin/python ./run_all.sh

Requires Python 3.13, Node 24, Go 1.27 and Rust 1.85. Tree: https://github.com/buildngrowsv/pubroot-[REDACTED_SECRET]-refs. We ran the script twice and once from a git archive export of the commit into a clean directory with a fresh virtual environment and npm ci. All three produced byte-identical files in results/.

4. Results

At least one library differed from the reference on 36 of the 80 references, and 35 of the 79 scored references exposed a deviation. Table 1 gives the counts; Appendix A has the full matrix and Appendix B every deviating output.

Table 1. Classes on the 79 scored references, and the open case N15.

LibraryAWRLN15 (open)
docker-image-py79000R
parse-docker-image-name77020W
@swimlane/docker-reference76021A
oci-spec76021W
go-containerregistry671011W
docker-parse-image522223W
docker-py491029W

The three ports of the reference package (docker-image-py, @swimlane/docker-reference, parse-docker-image-name) and oci-spec came close: docker-image-py matched on every scored case, and @swimlane/docker-reference and oci-spec gave the same outcome on all 79. go-containerregistry, docker-parse-image and docker-py differed most. All seven read the ten practical references (L01–L10) correctly. The deviations fall into the groups below.

Registry detection (H01, B11, N16). The rule that localhost names a registry even without a dot or port is the one docker-parse-image misses. It reads localhost/app as the Docker Hub repository localhost/app, so a program using it would look for the image on Docker Hub instead of the local registry. docker-parse-image also accepts at most three path components in total, counting the registry: it rejects registry.example.com/a/b/c:1 (B11) and an eleven-component Docker Hub path (N16), both valid. The other six libraries detected every registry host in the H group as the reference does, except for IPv6 hosts.

IPv6 registry hosts (H06, H15). distribution/reference v0.6.0 accepts bracketed IPv6 hosts such as [::1]:5000/app. @swimlane/docker-reference, parse-docker-image-name and oci-spec reject both IPv6 cases. They fail closed, so the effect is that a user with a registry on an IPv6 literal cannot use them; we did not trace which grammar version each one follows.

Tag and digest together (D02). For app:tag@sha256:… the reference keeps both the tag and the digest. oci-spec, docker-image-py, @swimlane/docker-reference and parse-docker-image-name do the same. go-containerregistry returns a digest reference and drops the tag; the image pulled is the same, because the digest decides, but a tool that reports or re-tags the image loses the tag. docker-py’s parse_repository_tag splits at the last @ and returns app:tag as the repository, so the tag becomes part of the repository name. docker-parse-image returns the tag tag@sha256:…, so the digest is hidden inside the tag. §5 shows that this form is common in pinned manifests.

Digest validation (D04–D08, D10–D12). The reference rejects a short digest, an unregistered algorithm, upper-case hex, trailing junk, an empty digest, two digests and an algorithm with +. @swimlane/docker-reference and oci-spec accept upper-case hex (D07), which the OCI image specification does not allow for sha256. go-containerregistry rejects all of them. docker-py accepts all seven and docker-parse-image six of them, returning whatever follows the @ as the digest. docker-py returns an empty digest for app@ (D10).

Tag and name validation (T02–T10, N01–N20). go-containerregistry by default uses what it calls weak validation, and accepts a tag that starts with . or - (T02, T03) and repository names with ___, .., .-, a leading -, trailing, doubled or leading slashes and a trailing __ (N04–N10, N20), which registries reject. It rejects upper case, non-ASCII, spaces, the empty string and a tag over 128 characters, like the reference. docker-py validates nothing in this path: it accepted all 21 tags and names in these two groups that the reference rejects, including the empty string (N14), a space (N13), upper case (N01, N02) and a 256-character name (N11). For app:v1.0/x (T10) it reports the registry app:v1.0 and the repository x, and for app:1:2 (T08) the repository app:1 with tag 2. docker-parse-image accepted 16 of them; for app:1:2 it returns the tag 1:2 and for app:v1.0/x the same registry app:v1.0 as docker-py. The Docker daemon validates names again when docker-py sends them, so for docker-py this is a question of where errors appear, not of what is finally pulled.

Empty port (H16). example.com:/app has a colon with no port. The reference rejects it. go-containerregistry, docker-py and docker-parse-image accept it with the registry example.com:.

The open case (N15). For a-b_c.d/e--f the reference returns an empty registry. docker-image-py rejects the string. go-containerregistry, docker-py, docker-parse-image and oci-spec read a-b_c.d as the registry; parse-docker-image-name reads the whole string as a Docker Hub repository; @swimlane/docker-reference matches the reference’s empty registry. A host name with an underscore is not a valid DNS name, so rejection is arguably the best reading, and only docker-image-py gives it.

5. Real-world sample

Sample. realworld/fetch_refs.py fetched six public repositories at pinned commits: docker/awesome-compose (compose files), kubernetes/examples, GoogleCloudPlatform/kubernetes-engine-samples and GoogleCloudPlatform/microservices-demo (Kubernetes manifests), argoproj/argo-workflows (workflow examples) and tektoncd/catalog (Tekton tasks). It collected every image: value in their YAML files, skipping 317 values that contain template syntax ($, {{). This gave 2,435 references, 477 of them distinct. Of the distinct references, 271 are on Docker Hub by the reference’s reading, 92 carry a digest, and 60 carry both a tag and a digest. The reference rejected 23 distinct strings, all placeholders such as <YOUR-CONTAINER>, <DOCKER_REPO>/chatbot:1.0 or CONTAINER_IMAGE-style strings left for the reader to fill in.

Table 2. Real-world sample: 477 distinct image: values (2,435 uses) from six repositories. Classes per distinct reference, then per use.

LibraryAWRLA (uses)W (uses)R (uses)L (uses)
docker-image-py4770002435000
@swimlane/docker-reference4770002435000
parse-docker-image-name4770002435000
oci-spec4770002435000
go-containerregistry4176000229713800
docker-py394600232261138036
docker-parse-image33156819211812617318

Sources (repository@commit): docker/awesome-compose@503c0dcef31b07fb77b2d4c5556bfafdf86f4f1a; kubernetes/examples@22934a040acbb0c0aa103023ccbd871507bf17f6; argoproj/argo-workflows@c2b35edf4829b1fcbc5cebafd77b8cebc8eb9709; GoogleCloudPlatform/kubernetes-engine-samples@2c7091f9066e82d036e16f0a0ab68a18b09d29e1; GoogleCloudPlatform/microservices-demo@c7cb6d5bfd6ea3aed768634ebbcb98cb7a523712; tektoncd/catalog@112374ce1262b133a77300bd8133445722605e04. The full list of references and their counts is committed as realworld/image_refs.json.

What differs. docker-image-py, @swimlane/docker-reference, parse-docker-image-name and oci-spec matched the reference on all 477 distinct references, including the 23 placeholders, which they reject. go-containerregistry differed on exactly the 60 tag-plus-digest references (138 uses), dropping the tag each time. docker-py differed on the same 60, folding the tag into the repository name (library/busybox:1.38.0 with the digest), and accepted all 23 placeholders. docker-parse-image failed on 81 references, 77 of them valid paths with three or more components such as gcr.io/google-samples/microservices-demo/adservice:v0.4.1; returned the digest inside the tag for 56 tag-plus-digest references; and accepted 9 placeholders. By use, docker-parse-image misread or rejected 299 of the 2,435 image: lines.

6. Implications (hypotheses)

The following are hypotheses drawn from the matrix and the sample, not measured effects.

Hypothesis 1: the tag-plus-digest form is where real tools disagree. Pinning both a human-readable tag and a digest is a common way to fix an image while keeping its name readable, and it appeared in 60 of 477 distinct references. Three of seven libraries handle it in three different wrong ways. A tool chain that mixes a parser that drops the tag with one that keeps it may report different names for the same image, and one that hides the digest inside the tag may skip a digest-pinning check.

Hypothesis 2: registry detection errors are the most dangerous kind. docker-parse-image’s reading of localhost/app as a Docker Hub repository sends a request, and possibly credentials, to a different registry than the one meant. We found no localhost/ references in the sample, so the effect is hypothetical for these sources, but local registries are common in development and CI.

Hypothesis 3: permissive parsers move validation errors downstream. go-containerregistry’s weak validation and docker-py’s lack of validation are documented choices, and registries or the daemon reject the names later. The cost is error messages from a different component than the one that read the name.

For library users. If agreement with Docker matters, the measured choices are distribution/reference itself, docker-image-py, oci-spec or oci-client, @swimlane/docker-reference and parse-docker-image-name, keeping in mind that the last three reject IPv6 registry hosts. go-containerregistry is safe for familiar names but drops the tag of a tag-plus-digest reference, and its name.StrictValidation option should be considered for untrusted input. docker-parse-image should not be used for registries with nested paths or for localhost.

7. Threats to validity

Reference choice. distribution/reference v0.6.0 is one version of the reference package, and the open case shows that it has quirks of its own. Docker’s daemon and containerd may vendor different versions, and containerd keeps a copy of the package. We did not test daemons or registries, only the libraries’ readings.

Normalisation. Applying Docker’s defaults to every result means we do not penalise a library that leaves the registry or tag implicit. A library that leaves them implicit and whose caller fills them in differently would behave differently from our table. Treating index.docker.io as docker.io reflects that both names refer to Docker Hub; a tool that keys credentials by the literal host could still treat them differently.

API choice. For docker-py we measured the split that its images.pull() performs on a string. docker-py offers no separate validating parser, and the daemon validates the name afterwards. For docker-parse-image we interpret its combined tag field by the separator in the input. For go-containerregistry we used the default options; name.StrictValidation and name.WithDefaultRegistry change the results.

Case selection. The 80 cases were written to cover the grammar and the familiar-name rules, not sampled from use. Counts compare libraries on this list; they are not error rates.

Sample. The six repositories are examples and catalogues maintained by projects, which skew towards well-formed references and towards Docker Hub, Google and GitHub registries. We found no localhost/ or IPv6 references, so the sample cannot show those deviations. The placeholders the reference rejects are intentional; a library that accepts them is not wrong about any real image.

8. Conclusion

Seven libraries that parse container image references agree with distribution/reference on ordinary names: all seven read the ten practical cases correctly, and four of them matched the reference on all 477 distinct references in the real-world sample. They differ on the edges that matter in practice. A tag-plus-digest reference, which pins an image while keeping a readable tag, is read three different ways by three libraries. One library sends localhost/app to Docker Hub and cannot parse nested registry paths that appear in 77 real references. Others accept tags, names and digests that registries reject, and three reject IPv6 registry hosts that the reference accepts. The matrix, the case list and the harness are pinned at one commit and re-run in seconds, so library authors can check changes against the reference package directly.

Appendix A. Full case list and verdict matrix

References are written as Python string literals; H stands for the 64-character hex string 0123456789abcdef repeated four times, so sha256:H is a valid sha256 digest. “Reference” is distribution/reference’s reading after the defaults in §3 (registry, repository, tag, digest), or ERR. Columns: ggcr = go-containerregistry; dip = docker-image-py; dpy = docker-py; swl = @swimlane/docker-reference; dpi = docker-parse-image; pdn = parse-docker-image-name; oci = oci-spec. Classes as in §3.

IDReference stringdistribution/referenceggcrdipdpyswldpipdnoci
B01'ubuntu''docker.io library/ubuntu latest -'AAAAAAA
B02'ubuntu:22.04''docker.io library/ubuntu 22.04 -'AAAAAAA
B03'library/ubuntu''docker.io library/ubuntu latest -'AAAAAAA
B04'docker.io/library/ubuntu:22.04''docker.io library/ubuntu 22.04 -'AAAAAAA
B05'docker.io/ubuntu''docker.io library/ubuntu latest -'AAAAAAA
B06'index.docker.io/library/ubuntu''docker.io library/ubuntu latest -'AAAAAAA
B07'user/app''docker.io user/app latest -'AAAAAAA
B08'user/app:v1''docker.io user/app v1 -'AAAAAAA
B09'ghcr.io/owner/repo:tag''ghcr.io owner/repo tag -'AAAAAAA
B10'quay.io/org/repo''quay.io org/repo latest -'AAAAAAA
B11'registry.example.com/a/b/c:1''registry.example.com a/b/c 1 -'AAAARAA
B12'registry-1.docker.io/library/ubuntu''registry-1.docker.io library/ubuntu latest -'AAAAAAA
H01'localhost/app''localhost app latest -'AAAAWAA
H02'localhost:5000/app''localhost:5000 app latest -'AAAAAAA
H03'localhost:5000/app:1.0''localhost:5000 app 1.0 -'AAAAAAA
H04'myregistry:5000/app''myregistry:5000 app latest -'AAAAAAA
H05'127.0.0.1:5000/app''127.0.0.1:5000 app latest -'AAAAAAA
H06'[::1]:5000/app''[::1]:5000 app latest -'AAARARR
H07'example.com/app''example.com app latest -'AAAAAAA
H08'example/app''docker.io example/app latest -'AAAAAAA
H09'my-host/app''docker.io my-host/app latest -'AAAAAAA
H10'sub.example.com:443/a:tag''sub.example.com:443 a tag -'AAAAAAA
H11'Example.com/app''Example.com app latest -'AAAAAAA
H12'localhost''docker.io library/localhost latest -'AAAAAAA
H13'localhost:5000''docker.io library/localhost 5000 -'AAAAAAA
H14'registry:5000/a/b:t''registry:5000 a/b t -'AAAAAAA
H15'[2001:db8::1]/app''[2001:db8::1] app latest -'AAARARR
H16'example.com:/app'ERRLALALAA
D01'app@sha256:H''docker.io library/app - sha256:H'AAAAAAA
D02'app:tag@sha256:H''docker.io library/app tag sha256:H'WAWAWAA
D03'ghcr.io/o/r@sha256:H''ghcr.io o/r - sha256:H'AAAAAAA
D04'app@sha256:abc'ERRAALALAA
D05'app@sha512:HH''docker.io library/app - sha512:HH'AAAAAAA
D06'app@md5:0123456789abcdef0123456789abcdef'ERRAALALAA
D07'app@sha256:[REDACTED_SECRET]'ERRAALLLAL
D08'app@sha256:Hx'ERRAALALAA
D09'localhost:5000/app@sha256:H''localhost:5000 app - sha256:H'AAAAAAA
D10'app@'ERRAALAAAA
D11'app@sha256:H@sha256:H'ERRAALALAA
D12'app@foo+bar:H'ERRAALALAA
T01'app:1.2.3-rc_1''docker.io library/app 1.2.3-rc_1 -'AAAAAAA
T02'app:.hidden'ERRLALALAA
T03'app:-dash'ERRLALALAA
T04'app:a×128''docker.io library/app a×128 -'AAAAAAA
T05'app:a×129'ERRAALALAA
T06'app:Latest''docker.io library/app Latest -'AAAAAAA
T07'app:'ERRAALAAAA
T08'app:1:2'ERRAALALAA
T09'app:_x''docker.io library/app _x -'AAAAAAA
T10'app:v1.0/x'ERRAALALAA
N01'Ubuntu'ERRAALALAA
N02'user/App'ERRAALALAA
N03'a__b''docker.io library/a__b latest -'AAAAAAA
N04'a___b'ERRLALALAA
N05'a..b'ERRLALALAA
N06'a.-b'ERRLALALAA
N07'-a/b'ERRLALALAA
N08'a/b/'ERRLALAAAA
N09'a//b'ERRLALAAAA
N10'/a/b'ERRLALAAAA
N11'a×256'ERRAALALAA
N12'café'ERRAALALAA
N13'a b'ERRAALALAA
N14''ERRAALAAAA
N15 (open)'a-b_c.d/e--f'' a-b_c.d/e--f latest -'WRWAWWW
N16'a/b/b/b/b/b/b/b/b/b/b''docker.io a/b/b/b/b/b/b/b/b/b/b latest -'AAAARAA
N17'a_b''docker.io library/a_b latest -'AAAAAAA
N18'a--b''docker.io library/a--b latest -'AAAAAAA
N19'ubuntu 'ERRAALALAA
N20'a__'ERRLALALAA
L01'nginx:1.27-alpine''docker.io library/nginx 1.27-alpine -'AAAAAAA
L02'postgres:16''docker.io library/postgres 16 -'AAAAAAA
L03'mcr.microsoft.com/dotnet/sdk:8.0''mcr.microsoft.com dotnet/sdk 8.0 -'AAAAAAA
L04'gcr.io/distroless/static-debian12:nonroot''gcr.io distroless/static-debian12 nonroot -'AAAAAAA
L05'public.ecr.aws/lambda/python:3.12''public.ecr.aws lambda/python 3.12 -'AAAAAAA
L06'registry.k8s.io/pause:3.9''registry.k8s.io pause 3.9 -'AAAAAAA
L07'ghcr.io/home-assistant/home-assistant:stable''ghcr.io home-assistant/home-assistant stable -'AAAAAAA
L08'docker.io/bitnami/redis:7.2''docker.io bitnami/redis 7.2 -'AAAAAAA
L09'quay.io/prometheus/node-exporter:v1.8.2''quay.io prometheus/node-exporter v1.8.2 -'AAAAAAA
L10'redis@sha256:H''docker.io library/redis - sha256:H'AAAAAAA

Appendix B. Deviating outputs

Every non-A cell of Appendix A, with the library’s normalised reading or its error.

  • B11 dpi (R): error: 'no match'
  • H01 dpi (W): 'docker.io localhost/app latest -'
  • H06 swl (R): error: 'invalid reference format'
  • H06 pdn (R): error: 'empty result'
  • H06 oci (R): error: 'invalid reference format'
  • H15 swl (R): error: 'invalid reference format'
  • H15 pdn (R): error: 'empty result'
  • H15 oci (R): error: 'invalid reference format'
  • H16 ggcr (L): 'example.com: app latest -'
  • H16 dpy (L): 'example.com: app latest -'
  • H16 dpi (L): 'example.com: app latest -'
  • D02 ggcr (W): 'docker.io library/app - sha256:H'
  • D02 dpy (W): 'docker.io library/app:tag - sha256:H'
  • D02 dpi (W): 'docker.io library/app tag@sha256:H -'
  • D04 dpy (L): 'docker.io library/app - sha256:abc'
  • D04 dpi (L): 'docker.io library/app - sha256:abc'
  • D06 dpy (L): 'docker.io library/app - md5:0123456789abcdef0123456789abcdef'
  • D06 dpi (L): 'docker.io library/app - md5:0123456789abcdef0123456789abcdef'
  • D07 dpy (L): 'docker.io library/app - sha256:[REDACTED_SECRET]'
  • D07 swl (L): 'docker.io library/app - sha256:[REDACTED_SECRET]'
  • D07 dpi (L): 'docker.io library/app - sha256:[REDACTED_SECRET]'
  • D07 oci (L): 'docker.io library/app - sha256:[REDACTED_SECRET]'
  • D08 dpy (L): 'docker.io library/app - sha256:Hx'
  • D08 dpi (L): 'docker.io library/app - sha256:Hx'
  • D10 dpy (L): 'docker.io library/app - '
  • D11 dpy (L): 'docker.io library/app@sha256:H - sha256:H'
  • D11 dpi (L): 'docker.io library/app - sha256:H@sha256:H'
  • D12 dpy (L): 'docker.io library/app - foo+bar:H'
  • D12 dpi (L): 'docker.io library/app - foo+bar:H'
  • T02 ggcr (L): 'docker.io library/app .hidden -'
  • T02 dpy (L): 'docker.io library/app .hidden -'
  • T02 dpi (L): 'docker.io library/app .hidden -'
  • T03 ggcr (L): 'docker.io library/app -dash -'
  • T03 dpy (L): 'docker.io library/app -dash -'
  • T03 dpi (L): 'docker.io library/app -dash -'
  • T05 dpy (L): 'docker.io library/app a×129 -'
  • T05 dpi (L): 'docker.io library/app a×129 -'
  • T07 dpy (L): 'docker.io library/app -'
  • T08 dpy (L): 'docker.io library/app:1 2 -'
  • T08 dpi (L): 'docker.io library/app 1:2 -'
  • T10 dpy (L): 'app:v1.0 x latest -'
  • T10 dpi (L): 'app:v1.0 x latest -'
  • N01 dpy (L): 'docker.io library/Ubuntu latest -'
  • N01 dpi (L): 'docker.io library/Ubuntu latest -'
  • N02 dpy (L): 'docker.io user/App latest -'
  • N02 dpi (L): 'docker.io user/App latest -'
  • N04 ggcr (L): 'docker.io library/a___b latest -'
  • N04 dpy (L): 'docker.io library/a___b latest -'
  • N04 dpi (L): 'docker.io library/a___b latest -'
  • N05 ggcr (L): 'docker.io library/a..b latest -'
  • N05 dpy (L): 'docker.io library/a..b latest -'
  • N05 dpi (L): 'docker.io library/a..b latest -'
  • N06 ggcr (L): 'docker.io library/a.-b latest -'
  • N06 dpy (L): 'docker.io library/a.-b latest -'
  • N06 dpi (L): 'docker.io library/a.-b latest -'
  • N07 ggcr (L): 'docker.io -a/b latest -'
  • N07 dpy (L): 'docker.io -a/b latest -'
  • N07 dpi (L): 'docker.io -a/b latest -'
  • N08 ggcr (L): 'docker.io a/b/ latest -'
  • N08 dpy (L): 'docker.io a/b/ latest -'
  • N09 ggcr (L): 'docker.io a//b latest -'
  • N09 dpy (L): 'docker.io a//b latest -'
  • N10 ggcr (L): 'docker.io /a/b latest -'
  • N10 dpy (L): 'docker.io /a/b latest -'
  • N11 dpy (L): 'docker.io library/a×256 latest -'
  • N11 dpi (L): 'docker.io library/a×256 latest -'
  • N12 dpy (L): 'docker.io library/café latest -'
  • N12 dpi (L): 'docker.io library/café latest -'
  • N13 dpy (L): 'docker.io library/a b latest -'
  • N13 dpi (L): 'docker.io library/a b latest -'
  • N14 dpy (L): 'docker.io library/ latest -'
  • N15 ggcr (W): 'a-b_c.d e--f latest -'
  • N15 dip (R): error: 'ReferenceInvalidFormat: invalid reference format'
  • N15 dpy (W): 'a-b_c.d e--f latest -'
  • N15 dpi (W): 'a-b_c.d e--f latest -'
  • N15 pdn (W): 'docker.io a-b_c.d/e--f latest -'
  • N15 oci (W): 'a-b_c.d e--f latest -'
  • N16 dpi (R): error: 'no match'
  • N19 dpy (L): 'docker.io library/ubuntu latest -'
  • N19 dpi (L): 'docker.io library/ubuntu latest -'
  • N20 ggcr (L): 'docker.io library/a__ latest -'
  • N20 dpy (L): 'docker.io library/a__ latest -'
  • N20 dpi (L): 'docker.io library/a__ latest -'

References

  1. Open Container Initiative. OCI Distribution Specification v1.1, “Pulling manifests” (repository name and tag grammar). https://github.com/opencontainers/distribution-spec/blob/main/spec.md
  2. distribution/reference v0.6.0 (reference.go grammar; normalize.go). https://github.com/distribution/reference/tree/v0.6.0
  3. parse-docker-image-name 3.0.0 README (“compiled main.go with gopherjs”). https://www.npmjs.com/package/parse-docker-image-name
  4. container_image_dist_ref 0.3.0 (Rust port of distribution/reference). https://crates.io/crates/container_image_dist_ref
  5. containers/image, containers-registries.conf(5): unqualified-search-registries and short-name aliases. https://github.com/containers/image/blob/main/docs/containers-registries.conf.5.md
  6. W. M. McKeeman. Differential Testing for Software. Digital Technical Journal 10(1), 1998.
  7. Subject libraries: google/go-containerregistry (pkg/name), docker/docker-py, realityone/docker-image-py, swimlane/docker-reference, mafintosh/docker-parse-image, signalfx/parse-docker-image-name, containers/oci-spec-rs, oras-project/rust-oci-client. https://github.com/google/go-containerregistry ; https://github.com/docker/docker-py ; https://github.com/realityone/docker-image-py ; https://github.com/swimlane/docker-reference ; https://github.com/mafintosh/docker-parse-image ; https://github.com/signalfx/parse-docker-image-name ; https://github.com/containers/oci-spec-rs ; https://github.com/oras-project/rust-oci-client
  8. Open Container Initiative. OCI Image Format Specification, “Descriptors: Digests” (registered algorithms; lower-case hex for sha256). https://github.com/opencontainers/image-spec/blob/main/descriptor.md#digests
  9. A. King. Revalidation Under Test: How Fourteen Static-File Servers Evaluate HTTP Preconditions. Pubroot 2026-567, 2026. (Self-citation.)