Skip to content

Commit 0045f9b

Browse files
edits from the feedback
1 parent 77a987d commit 0045f9b

File tree

4 files changed

+68
-60
lines changed

4 files changed

+68
-60
lines changed

articles/container-registry/tutorial-enable-registry-cache-auth.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 04/19/2022
66
ms.author: tejaswikolli
77
---
88

9-
# Enable Registry Cache
9+
# # Enable Caching for ACR with authentication - Azure portal
1010

1111
This article is part three of a four-part tutorial series. [Part one](tutorial-registry-cache.md) provides an overview of Caching for ACR, its features, benefits, and preview limitations. In [part two](tutorial-enable-registry-cache.md), you learn how to enable Caching for ACR feature by using the Azure portal.
1212

@@ -16,7 +16,8 @@ This article walks you through the steps of enabling Caching for ACR with authen
1616

1717
* Sign in to the [Azure portal](https://ms.portal.azure.com/).
1818

19-
## Configure Registry Cache - Azure portal
19+
20+
## Configure Caching for ACR with authentication - Azure portal
2021

2122
Follow the steps to create cache rule in the [Azure portal](https://portal.azure.com).
2223

@@ -42,7 +43,7 @@ Follow the steps to create cache rule in the [Azure portal](https://portal.azure
4243

4344
5. Enter the **Rule name**.
4445

45-
6. Select **Source** Registry from the dropdown menu. Currently ACR supports **Docker Hub** and **Microsoft Artifact Registry**.
46+
6. Select **Source** Registry from the dropdown menu. Currently, Caching for ACR only supports **Docker Hub** and **Microsoft Artifact Registry**.
4647

4748
7. Enter the **Repository Path** to the artifacts you want to cache.
4849

@@ -52,15 +53,21 @@ Follow the steps to create cache rule in the [Azure portal](https://portal.azure
5253

5354
10. If you have the credentials ready, **Select credentials** from the drop-down menu.
5455

55-
11. Under the **Destination**, Enter the name of the **New ACR repository path** to store cached artifacts.
56+
11. Under the **Destination**, Enter the name of the **New ACR Repository Namespace** to store cached artifacts.
5657

5758

5859
:::image type="content" source="./media/container-registry-registry-cache/save-cache-rule-04.png" alt-text="Screenshot to save Cache Rule.":::
5960

6061

6162
12. Select on **Save**
6263

63-
13. Pull the image from your cache using the Docker command `docker pull myregistry.azurecr.io/hello-world`
64+
13. Run the [az keyvault set-policy][az-keyvault-set-policy] command to assign access to the Key Vault, before pulling the image.
65+
66+
```azurecli-interactive
67+
az keyvault set-policy --name myKeyVaultName --object-id myObjID --secret-permissions get
68+
```
69+
70+
14. Pull the image from your cache using the Docker command `docker pull myregistry.azurecr.io/hello-world`
6471

6572
### Create new credentials
6673

@@ -88,4 +95,5 @@ Follow the steps to create cache rule in the [Azure portal](https://portal.azure
8895
* Advance to the [next article](tutorial-troubleshoot-registry-cache.md) to walk through the troubleshoot guide for Registry Cache.
8996

9097
<!-- LINKS - External -->
91-
[create-and-store-keyvault-credentials]:../key-vault/secrets/quick-create-portal.md
98+
[create-and-store-keyvault-credentials]: ../key-vault/secrets/quick-create-portal.md
99+
[az-keyvault-set-policy]: ../azure/key-vault/general/assign-access-policy.md#assign-an-access-policy

articles/container-registry/tutorial-enable-registry-cache.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This article is part two of a four-part tutorial series. [Part one](tutorial-reg
1414

1515
* Sign in to the [Azure portal](https://ms.portal.azure.com/).
1616

17-
## Configure Registry Cache - Azure portal
17+
## Configure Caching for ACR - Azure portal
1818

1919
Follow the steps to create cache rule in the [Azure portal](https://portal.azure.com).
2020

@@ -40,25 +40,32 @@ Follow the steps to create cache rule in the [Azure portal](https://portal.azure
4040

4141
5. Enter the **Rule name**.
4242

43-
6. Select **Source** Registry from the dropdown menu. Currently ACR supports **Docker Hub** and **Microsoft Artifact Registry**.
43+
6. Select **Source** Registry from the dropdown menu. Currently, Caching for ACR only supports **Docker Hub** and **Microsoft Artifact Registry**.
4444

4545
7. Enter the **Repository Path** to the artifacts you want to cache.
4646

4747
8. You can skip **Authentication**, if you aren't accessing a private repository or performing an authenticated pull.
4848

49-
9. Under the **Destination**, Enter the name of the **New ACR repository path** to store cached artifacts.
49+
9. Under the **Destination**, Enter the name of the **New ACR Repository Namespace** to store cached artifacts.
5050

5151

5252
:::image type="content" source="./media/container-registry-registry-cache/save-cache-rule-04.png" alt-text="Screenshot to save Cache Rule.":::
5353

5454

5555
10. Select on **Save**
5656

57-
11. Pull the image from your cache using the Docker command `docker pull myregistry.azurecr.io/hello-world`
57+
11. Run the [az keyvault set-policy][az-keyvault-set-policy] command to assign access to the Key Vault, before pulling the image.
58+
59+
```azurecli-interactive
60+
az keyvault set-policy --name myKeyVaultName --object-id myObjID --secret-permissions get
61+
```
62+
63+
12. Pull the image from your cache using the Docker command `docker pull myregistry.azurecr.io/hello-world`
5864

5965
## Next steps
6066

6167
* Advance to the [next article](tutorial-enable-registry-cache-auth.md) to enable the Caching for ACR with authentication using Azure portal.
6268

6369
<!-- LINKS - External -->
64-
[create-and-store-keyvault-credentials]:../key-vault/secrets/quick-create-portal.md
70+
[create-and-store-keyvault-credentials]:../key-vault/secrets/quick-create-portal.md
71+
[az-keyvault-set-policy]: ../azure/key-vault/general/assign-access-policy.md#assign-an-access-policy

articles/container-registry/tutorial-registry-cache.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,50 +19,53 @@ This article is part one in a four-part tutorial series. The tutorial covers:
1919
2020
## Caching for ACR
2121

22-
Caching for ACR enables you to cache container images from public registries.
22+
Caching for ACR enables you to cache container images from public and private repositories.
2323

2424
Implementing Caching for ACR provides the following benefits:
2525

2626
***High-speed pull operations:*** Faster pulls of container images are achievable by caching the container images in ACR. Since Microsoft manages the Azure network, pull operations are faster by providing Geo-Replication and Availability Zone support to the customers.
2727

2828
***Private networks:*** Cached registries are available on private networks. Therefore, users can configure their firewall to meet compliance standards.
2929

30-
***Docker Rate Limit:*** Docker has updated their terms of services. The new limits allow anonymous users to 100 pull operations every six hours. Free Docker account users have 200 pull operations limit for every six hours. The Docker subscription users have 5000 pull operations limit for every 24 hours. Caching for ACR allows users to pull images from the cache. Container images pulled from the cache ***do not*** count toward Docker's pull limit. Learn more docker hub rate limit [here][docker-rate-limit].
31-
32-
## Preview Limitations
33-
34-
- Quarantine functions like signing, scanning, and manual compliance approval are on the roadmap but aren't included in this release.
35-
36-
- Caching will only occur after the container image is requested at least once. For every new image available, a new pull request must be made. Caching for ACR doesn't automatically pull new version of images when a new version is available. This is on the roadmap but isn't supported in this release.
37-
38-
- Caching for ACR only supports Docker Hub and Microsoft Artifact Registry. Multiple other registries including self-hosted registries are on the roadmap but aren't included in this release.
39-
40-
- Caching for ACR is only available by using the Azure portal. The Azure CLI is released in the coming weeks.
30+
***Docker Rate Limit:*** Docker has updated their terms of services to rate limit pulls for customers. The rate limit of the pull depends on the type of account in use. Caching for ACR allows users to pull images from the cache. Container images pulled from the cache ***do not*** count toward Docker's pull limit. Learn more docker hub rate limit [here][docker-rate-limit].
4131

32+
4233
## Terminology
4334

4435
- Cache Rule
45-
- Cache Rules are a set of rules you can create to pull artifacts from a supported registry into your cache. A cache rule contains four parts:
36+
- A Cache Rule is a rule you can create to pull artifacts from a supported repository into your cache. A cache rule contains four parts:
4637

47-
1. A Rule Name - The name of your cache rule. For example, `Hello-World-Cache`.
38+
1. Rule Name - The name of your cache rule. For example, `Hello-World-Cache`.
4839

49-
2. A Source - The name of the Source Registry. Currently, we only support **Docker Hub** and **Microsoft Artifact Registry**.
40+
2. Source - The name of the Source Registry. Currently, we only support **Docker Hub** and **Microsoft Artifact Registry**.
5041

51-
3. A Repository Path - The source path of the repository to find and retrieve artifacts you want to cache. For example, `docker.io/library/hello-world`.
42+
3. Repository Path - The source path of the repository to find and retrieve artifacts you want to cache. For example, `docker.io/library/hello-world`.
5243

53-
4. An ACR Repository Path - The name of the new repository path to store artifacts. For example, `hello-world`. The Repository can't already exist inside the ACR instance.
44+
4. New ACR Repository Namespace - The name of the new repository path to store artifacts. For example, `hello-world`. The Repository can't already exist inside the ACR instance.
5445

55-
- Credential Set
56-
- A credential set is a username and password for the source registry. A credential set is needed if you wish to authenticate with a public or private repository. A credential set contains four parts
46+
- Credentials
47+
- Credentials are a set of username and password for the source registry. Credentials are needed if you wish to authenticate with a public or private repository. Credentials contains four parts
5748

58-
1. A Credential Set Name - The name of your credential set.
49+
1. Credentials - The name of your credentials.
5950

60-
2. A Source registry Login Server - The login server of your source registry. Only `docker.io` is supported.
51+
2. Source registry Login Server - The login server of your source registry. Only `docker.io` is supported.
6152

62-
3. A Source Authentication - The key vault locations to store credentials.
53+
3. Source Authentication - The key vault locations to store credentials.
6354
6455
4. Username and Password secrets- The secrets containing the username and password.
6556

57+
## Preview Limitations
58+
59+
- Quarantine functions like signing, scanning, and manual compliance approval are on the roadmap but aren't included in this release.
60+
61+
- Caching will only occur after the container image is requested at least once. For every new image available, a new pull request must be made. Caching for ACR doesn't automatically pull new version of images when a new version is available. This is on the roadmap but isn't supported in this release.
62+
63+
- Caching for ACR only supports Docker Hub and Microsoft Artifact Registry. Multiple other registries including self-hosted registries are on the roadmap but aren't included in this release.
64+
65+
- Caching for ACR only supports 50 cache rules.
66+
67+
- Caching for ACR is only available by using the Azure portal. The Azure CLI is released in the coming weeks.
68+
6669
## Next steps
6770

6871
* To enable Caching for ACR using the Azure portal advance to the next article: [Enable Caching for ACR](tutorial-enable-registry-cache.md).

articles/container-registry/tutorial-troubleshoot-registry-cache.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,25 @@ ms.date: 04/19/2022
66
ms.author: tejaswikolli
77
---
88

9-
# Troubleshoot guide for Registry Cache
9+
# Troubleshoot guide for Caching for ACR
1010

1111
This article is part four in a four-part tutorial series. [Part one](tutorial-registry-cache.md) provides information about the Caching for ACR feature, its limitations, and benefits of the implementation in your registry. In [part two](tutorial-enable-registry-cache.md), you learn how to enable Caching for ACR feature by using the Azure portal. In [part three](tutorial-enable-registry-cache-auth.md), you learn how to enable Caching for ACR feature with authentication by using the Azure portal.
1212

1313
This article helps you troubleshoot problems you might encounter when attempting to use Caching for ACR.
1414

15-
## Symptoms
15+
## Symptoms and Causes
1616

1717
May include one or more of the following issues:
1818

19-
- Cached images don't appear in a live repository
20-
21-
- Unable to create a Credential set
19+
- Cached images don't appear in a real repository
20+
- [Cached images don't appear in a live repository](tutorial-troubleshoot-registry-cache.md#cached-images-dont-appear-in-a-live-repository)
2221

2322
- Credential set has an unhealthy status
23+
- [Unhealthy Credential Set](tutorial-troubleshoot-registry-cache.md#unhealthy-credential-set)
2424

2525
- Unable to create a cache rule
26-
27-
## Causes
28-
29-
- Cache rule doesn't point to a real repository
30-
31-
- URI of secrets is empty
32-
33-
- Credential set secret is invalid
34-
35-
- The cache rule is trying to pull from an unsupported registry
36-
37-
- 50 cache rules have been created
26+
- [Unsupported Registries](tutorial-troubleshoot-registry-cache.md#unsupported-registries)
27+
- [Cache rule Limit](tutorial-troubleshoot-registry-cache.md#cache-rule-limit)
3828

3929
## Potential Solutions
4030

@@ -47,23 +37,22 @@ If you're having an issue with cached images not showing up in your repository i
4737

4838
The Azure portal autofills these fields for you. However, many Docker repositories begin with `library/` in their path. For example, in-order to cache the `hello-world` repository, the correct Repository Path is `docker.io/library/hello-world`.
4939

50-
## Unable to create a Credential set
51-
52-
We recommend before creating a credential set inside the Azure portal, ensure both the Username and Password secrets are associated with a Key Vault or secret URIs.
53-
54-
- Credential sets can be stored using Azure Key Vault.
55-
- When using Azure Key vault, you must have a Key Vault name and Secret for both the Username and Password secrets.
56-
57-
Caching for ACR allows you to cache images from private Docker Hub repositories. In-order to store the credentials needed to access the private repository. You must create a credential set.
58-
5940
## Unhealthy Credential Set
6041

6142
Credential sets are a set of Key Vault secrets that operate as a Username and Password for private repositories. Unhealthy Credential sets are often a result of these secrets no longer being valid. Inside the Azure portal you can select the credential set, to edit and apply changes.
6243

6344
- Verify the secrets in Azure Key Vault haven't expired.
6445
- Verify the secrets in Azure Key Vault are valid.
46+
- Verify the access to the Azure Key Vault is assigned.
47+
48+
To assign the access to Azure Key Vault:
49+
50+
```azurecli-interactive
51+
az keyvault set-policy --name myKeyVaultName --object-id myObjID --secret-permissions get
52+
```
6553

6654
Learn more about [Key Vaults][create-and-store-keyvault-credentials].
55+
Learn more about [Assigning the access to Azure Key Vault][az-keyvault-set-policy].
6756

6857
## Unable to create a Cache rule
6958

@@ -83,4 +72,5 @@ If you're facing issues while creating a Cache rule, we recommend verifying if y
8372
We recommend deleting any unwanted cache rules to avoid hitting the limit.
8473

8574
<!-- LINKS - External -->
86-
[create-and-store-keyvault-credentials]:../key-vault/secrets/quick-create-portal.md
75+
[create-and-store-keyvault-credentials]:../key-vault/secrets/quick-create-portal.md
76+
[az-keyvault-set-policy]: ../azure/key-vault/general/assign-access-policy.md#assign-an-access-policy

0 commit comments

Comments
 (0)