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-24Lines changed: 45 additions & 24 deletions
Display the source diff
Display the rich diff
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)
@@ -901,6 +902,21 @@ 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 Proxying
906
+
907
+
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).
908
+
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.
909
+
A `ns` query parameter on pull operations is OPTIONAL, but when used specifies the host in a repository name used by a client.
910
+
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.
911
+
The host in the repository name SHOULD be the first component of the full repository name used by a client.
912
+
This original host component used by the client is referred to as the source host in the API documentation.
913
+
A proxy registry MAY use the `ns` query parameter to resolve an upstream registry host.
914
+
A proxy registry MAY choose to ignore the `ns` query parameter.
915
+
916
+
A client SHOULD be aware of whether a registry host is being used is a proxy.
917
+
A client SHOULD avoid sending `ns` query parameters to non-proxy registries.
918
+
A client SHOULD NOT unintentionally send authorization credentials for an upstream registry to a proxy registry.
919
+
904
920
## Detail
905
921
906
922
> **Note**: This section is still under construction.
@@ -1081,11 +1097,12 @@ Return all tags for the repository
1081
1097
1082
1098
The following parameters SHOULD be specified on the request:
0 commit comments