Skip to content

Commit 139c11f

Browse files
committed
docs edits
1 parent 44b655c commit 139c11f

File tree

1 file changed

+31
-19
lines changed

1 file changed

+31
-19
lines changed

docs/vendor/packaging-public-images.md

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,58 @@
1-
# Connecting to an Public Registry
1+
# Connecting to a Public Registry
22

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).
44

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
66

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.
88

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.
1010

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:
1212

13+
```bash
14+
docker pull REPLICATED_PROXY_DOMAIN/anonymous/UPSTREAM_REGISTRY_HOSTNAME/IMAGE:TAG
1315
```
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
1623

17-
### Pulling images
24+
This section includes examples of pulling public images through the Replicated proxy registry.
1825

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:
2029

2130
```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
2332
docker pull proxy.replicated.com/anonymous/busybox
2433
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
2737
docker pull proxy.replicated.com/anonymous/docker.io/replicated/replicated-sdk:1.0.0
2838
```
2939

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:
3143

3244
```bash
33-
# Pull from Amazon ECR Public Gallery
3445
docker pull proxy.replicated.com/anonymous/public.ecr.aws/nginx/nginx:latest
3546
```
3647

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:
3951

4052
```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
4254
```
43-
:::
55+
For information about how to set a custom domain for the proxy registry, see [Using Custom Domains](/vendor/custom-domains-using).
4456

4557
## Related Topic
4658

0 commit comments

Comments
 (0)