question

DileepYavanmandha-9265 avatar image
0 Votes"
DileepYavanmandha-9265 asked vipullag-MSFT answered

Successive image pulls for a container in container group are happening from registry instead of pulling the cached image.

When a new container is created in the same container group, the image is being pulled again from registry. Not sure why the image is being pulled from ACR when it should already be available on the host. See below the image pull events.
93691-capture.png


azure-container-instances
capture.png (120.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

vipullag-MSFT avatar image
0 Votes"
vipullag-MSFT answered

@DileepYavanmandha-9265

As documented here, the caching mechanism is for some commonly used Windows and Linux base images only. The layers on top of the cached base image are currently always pulled. If the base layer is not in the list of cached images then the whole image is always pulled.

You can check latest list of cached images here.

The best practice guideline can be found here.

However, wanted to also let you know that there is currently a feature request in place with the ACI Team and team has been working on it. Check the feature request details here.

Hope this helps.

Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.