You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.md
+44-24
Original file line number
Diff line number
Diff line change
@@ -33,6 +33,7 @@ The goal of this specification is to standardize container image distribution ba
33
33
-[Listing Repositories](#listing-repositories)
34
34
-[Listing Image Tags](#listing-image-tags)
35
35
-[Deleting an Image](#deleting-an-image)
36
+
-[Mirroring](#registry-mirroring)
36
37
-[Detail](#detail)
37
38
-[Errors](#errors-2)
38
39
-[Base](#base)
@@ -901,6 +902,20 @@ If the image had already been deleted or did not exist, a `404 Not Found` respon
901
902
902
903
> for more details, see: [compatibility.md](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#backward-compatibility)
903
904
905
+
### Registry Mirroring
906
+
907
+
A registry MAY operate as a mirror for an upstream registry to support pull-through caching or proxying of fetch operations (such as fetching tags, manifest, or blobs).
908
+
In this case, the `Host` HTTP Header passed to the mirror likely does not match the repository's namespace used by the client.
909
+
The `ns` query parameter on fetch operations is OPTIONAL and specifies the repository's namespace used by a client.
910
+
The repository's namespace is normally the first component of a full repository name used by a client.
911
+
This namespace is often used to determine the registry host a client will interact with, however, a client MAY be configured to use a different host.
912
+
A mirrored registry MAY use the `ns` query parameter to resolve an upstream registry host.
913
+
A mirrored registry MAY choose to use a single upstream registry and ignore the `ns` query parameter.
914
+
915
+
A client SHOULD be aware of whether a registry host being used is a mirror.
916
+
A client SHOULD avoid sending `ns` query parameters to non-mirrored registries.
917
+
A client SHOULD NOT send authorization credentials for upstream registries to mirrored registries.
918
+
904
919
## Detail
905
920
906
921
> **Note**: This section is still under construction.
@@ -1081,11 +1096,12 @@ Return all tags for the repository
1081
1096
1082
1097
The following parameters SHOULD be specified on the request:
0 commit comments