|
1 | | -# Connecting to an Public Registry |
| 1 | +# Connecting to a Public Registry |
2 | 2 |
|
3 | | -This topic describes how to pull images from public registries using the Replicated proxy registry. This can simplify network access requirements for your customers, as they only need to allowlist a single domain (`proxy.replicated.com` or your custom domain) instead of multiple registry domains. |
| 3 | +This topic describes how to pull images from public registries using the Replicated proxy registry. For more information about the Replicated proxy registry, see [About the Replicated Proxy Registry](private-images-about). |
4 | 4 |
|
5 | | -For more information about the Replicated proxy registry, see [About the Replicated Proxy Registry](private-images-about). |
| 5 | +## Pull Public Images Through the Replicated Proxy Registry |
6 | 6 |
|
7 | | -## Pull public images through the Replicated proxy registry |
| 7 | +You can use the Replicated proxy registry to pull both public and private images. Using the Replicated proxy registry for public images can simplify network access requirements for your customers, as they only need to whitelist a single domain (either `proxy.replicated.com` or your custom domain) instead of multiple registry domains. |
8 | 8 |
|
9 | | -You can use the Replicated proxy registry to pull both public and private images. Using the Replicated proxy registry for public images can simplify network access requirements for your customers, as they only need to whitelist a single domain (`proxy.replicated.com` or your custom domain) instead of multiple registry domains. |
| 9 | +For public images, you can use anonymous access without configuring registry credentials. |
10 | 10 |
|
11 | | -For public images, you can use anonymous access without configuring registry credentials. The URL structure for pulling public images is: |
| 11 | +To pull public images through the Replicated proxy registry, use the following `docker` command: |
12 | 12 |
|
| 13 | +```bash |
| 14 | +docker pull REPLICATED_PROXY_DOMAIN/anonymous/UPSTREAM_REGISTRY_HOSTNAME/IMAGE:TAG |
13 | 15 | ``` |
14 | | -proxy.replicated.com/anonymous/<upstream registry hostname>/<image>:<tag> |
15 | | -``` |
| 16 | +Where: |
| 17 | +* `REPLICATED_PROXY_DOMAIN` is `proxy.replicated.com` or your custom domain. For information about how to set a custom domain for the proxy registry, see [Using Custom Domains](/vendor/custom-domains-using). |
| 18 | +* `UPSTREAM_REGISTRY_HOSTNAME` is the hostname for the public registry where the image is located. If the image is located in a namespace within the registry, include the namespace after the hostname. For example, `quay.io/namespace`. |
| 19 | +* `IMAGE` is the image name. |
| 20 | +* `TAG` is the image tag. |
| 21 | + |
| 22 | +## Examples |
16 | 23 |
|
17 | | -### Pulling images |
| 24 | +This section includes examples of pulling public images through the Replicated proxy registry. |
18 | 25 |
|
19 | | -Pull public images from DockerHub (default registry when no registry hostname is specified): |
| 26 | +### Pull Images from DockerHub |
| 27 | + |
| 28 | +The following examples show how to pull public images from DockerHub: |
20 | 29 |
|
21 | 30 | ```bash |
22 | | -# DockerHub/index.docker.io is the default when no registry hostname is specified |
| 31 | +# DockerHub is the default when no hostname is specified |
23 | 32 | docker pull proxy.replicated.com/anonymous/busybox |
24 | 33 | docker pull proxy.replicated.com/anonymous/nginx:1.16.0 |
25 | | - |
26 | | -# You can also explicitly specify docker.io |
| 34 | +``` |
| 35 | +```bash |
| 36 | +# You can also optionally specify docker.io |
27 | 37 | docker pull proxy.replicated.com/anonymous/docker.io/replicated/replicated-sdk:1.0.0 |
28 | 38 | ``` |
29 | 39 |
|
30 | | -Pull public images from other registries: |
| 40 | +### Pull Images from Other Registries |
| 41 | + |
| 42 | +The following example shows how to pull images from the Amazon ECR Public Gallery: |
31 | 43 |
|
32 | 44 | ```bash |
33 | | -# Pull from Amazon ECR Public Gallery |
34 | 45 | docker pull proxy.replicated.com/anonymous/public.ecr.aws/nginx/nginx:latest |
35 | 46 | ``` |
36 | 47 |
|
37 | | -:::note |
38 | | -If you have configured a custom domain for your proxy registry, replace `proxy.replicated.com` with your custom domain in the examples above: |
| 48 | +### Pull Images Using a Custom Domain for the Proxy Registry |
| 49 | + |
| 50 | +The following example shows how to pull a public image when a custom domain is configured for the proxy registry: |
39 | 51 |
|
40 | 52 | ```bash |
41 | | -docker pull {your proxy custom domain}/anonymous/public.ecr.aws/nginx/nginx:latest |
| 53 | +docker pull my.customdomain.io/anonymous/public.ecr.aws/nginx/nginx:latest |
42 | 54 | ``` |
43 | | -::: |
| 55 | +For information about how to set a custom domain for the proxy registry, see [Using Custom Domains](/vendor/custom-domains-using). |
44 | 56 |
|
45 | 57 | ## Related Topic |
46 | 58 |
|
|
0 commit comments