acr icon indicating copy to clipboard operation
acr copied to clipboard

trigger base image updates after using az acr import

Open Stijnc opened this issue 5 years ago • 6 comments

When importing images from mcr or docker hub I want to be able to trigger base image updates. Maybe this is already possible, but I failed. Any pointers are appreciated.

Something in the lines of:

  1. import an image from an external repository
 az acr import --name <registryName>--source docker.io/library/<name>:<tag> --image <name>:<tag>
  1. create a task to track image updates
task create -n <taskname>-r <registryName> -c /dev/null -t <name>:<tag>

Thanks, Stijn

Stijnc avatar Sep 13 '20 14:09 Stijnc

The base image is tracked using the FROM clause in your Dockerfile. If the source image is now in an ACR then you should update the Dockerfile to point to that.

sajayantony avatar Sep 13 '20 17:09 sajayantony

Understood. But that would only trigger an application image update and leave the base image untouched.

Stijnc avatar Sep 13 '20 18:09 Stijnc

I think what you’re asking is:

  • If my vase image is in an ACR which triggers if you do a push to the referenced tag
  • would an az acr import also trigger the base image update notifications.

Is that accurate?

SteveLasker avatar Sep 14 '20 03:09 SteveLasker

Any update on this?

klingac avatar May 16 '21 15:05 klingac

Any updates on this?

I wonder if it is possible to execute the import on a schedule. Will it properly resolve updates?

roestzwiee avatar Aug 05 '21 12:08 roestzwiee

Hi I have the same issue..

I got this node public image imported into my private ACR as node:16-alpine.. and all my app image are referencing this internal base image.

Now if new updates are coming in public node image in docker hub will my copy base image get updated in my private ACR automatically?

@SteveLasker

Racv avatar Aug 19 '22 12:08 Racv