I'm trying to use Azure Container Instances and I have a problem with long pulls of my image. It takes about 3 minutes for ACI to pull my image.
I've checked the Troubleshooting guide which says the following:
To ensure the fastest Windows container startup time, use one of the three most recent versions of the following two images as the base image:
microsoft/windowsservercore
ormicrosoft/nanoserver
My image is pretty simple and based of microsoft/windowsservercore:ltsc2016
as suggested in the Troubleshooting guide. Here is the Dockerfile and cirrusci/windowsservercore:2016
image itself.
I can see that if I just try to start microsoft/windowsservercore:ltsc2016
, it takes just about 20 seconds to start it. So my guess is that microsoft/windowsservercore:ltsc2016
is really cached but just not the latest digest as the documentation claims. I wonder if there is any way to find out exact digests of images that ACI caches?
Note: I've tried to move the image from Docker Hub to Azure Container Registry in the same region as suggested. It didn't help much. It was still around 3 minutes to pull the image.