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
+45-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
+
-[Proxying](#registry-Proxying)
36
37
-[Detail](#detail)
37
38
-[Errors](#errors-2)
38
39
-[Base](#base)
@@ -840,6 +841,21 @@ If the image had already been deleted or did not exist, a `404 Not Found` respon
840
841
841
842
> for more details, see: [compatibility.md](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#backward-compatibility)
842
843
844
+
### Registry Proxying
845
+
846
+
A registry MAY operate as a proxy to another registry to support pull-through caching or proxying of pull operations (such as fetching tags, manifests, or blobs).
847
+
In this case, the `Host` header passed to the proxy registry WILL NOT be the same as the host in the repository name used by the client.
848
+
A `ns` query parameter on pull operations is OPTIONAL, but when used specifies the host in a repository name used by a client.
849
+
This host component in a repository name SHOULD be the registry host a client considers the primary source for a repository, however, a client MAY be configured to use a different host.
850
+
The host in the repository name SHOULD be the first component of the full repository name used by a client.
851
+
This original host component used by the client is referred to as the source host in the API documentation.
852
+
A proxy registry MAY use the `ns` query parameter to resolve an upstream registry host.
853
+
A proxy registry MAY choose to ignore the `ns` query parameter.
854
+
855
+
A client SHOULD be aware of whether a registry host is being used is a proxy.
856
+
A client SHOULD avoid sending `ns` query parameters to non-proxy registries.
857
+
A client SHOULD NOT unintentionally send authorization credentials for an upstream registry to a proxy registry.
858
+
843
859
## Detail
844
860
845
861
> **Note**: This section is still under construction.
@@ -1019,11 +1035,12 @@ The implementation MAY impose a maximum limit and return a partial set with pagi
1019
1035
1020
1036
The following parameters SHOULD be specified on the request:
0 commit comments