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 pull operations (such as fetching tags, manifests, or blobs).
908
+
In this case, the `Host` header passed to the mirror registry MAY NOT be the same as the host in the repository name used by the client.
909
+
A `ns` query parameter on pull operations is OPTIONAL and specifies the host in repository name used by a client.
910
+
The host in the repository name is normally the first component of the full repository name used by a client.
911
+
This host component 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 mirror registry MAY use the `ns` query parameter to resolve an upstream registry host.
913
+
A mirror registry MAY choose to ignore the `ns` query parameter.
914
+
915
+
A client SHOULD be aware of whether a registry host is being used is a mirror.
916
+
A client SHOULD avoid sending `ns` query parameters to non-mirror registries.
917
+
A client SHOULD NOT send authorization credentials for an upstream registry to a mirror registry.
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