Azure / acr

Azure Container Registry samples, troubleshooting tips and references
https://aka.ms/acr
Other
162 stars 106 forks source link

Cannot create cache rule for public docker image `python:3.11-bookworm` due to naming rules #766

Open xec-abailey opened 3 days ago

xec-abailey commented 3 days ago

Describe the bug I am pulling in the dockerhub python:3.11-bookworm image and want to add a cache rule. Despite following the documentation instructions I am unable to create due to an issue with the repository path name.

To Reproduce Steps to reproduce the behavior:

  1. Go to acr
  2. Open cache
    • create rule
  3. in "Repository path" enter docker.io/library/python:3.11-bookworm
  4. Receive error Repository names should follow the standardized docker repository naming conventions. All characters should be lowercase. For more information, please visit https://aka.ms/acr/cache.

Expected behavior Given that this is the correct address of the image I would expect it to be a valid repository path.

Screenshots Create rule screen: image

Docker hub path: image

Any relevant environment information

Additional context Add any other context about the problem here.

If any information is a concern to post here, you can create a support ticket or send an email to acrsup@microsoft.com.

xec-abailey commented 3 days ago

Important to note that when I first open the "Create rule" window I see this:

image

If I just delete / then re-type it I get the same error:

image

vladimirjk commented 3 days ago

@xec-abailey You can't cache any specific tag, just the whole repo. You need point docker.io/library/python-> <your_repo_name>, then pull any tag available in library/python e.g. <your_registry>.azurecr.io/<your_repo_name>:3.11-bookworm

xec-abailey commented 3 days ago

@xec-abailey You can't cache any specific tag, just the whole repo. You need point docker.io/library/python-> <your_repo_name>, then pull any tag available in library/python e.g. <your_registry>.azurecr.io/<your_repo_name>:3.11-bookworm

Ah, makes sense thanks