Public DockerHub image not caching (or just slow pull times)

Valtteri Puonti February 19, 2021

Hi, 

According to the answer here: https://community.atlassian.com/t5/Bitbucket-questions/Caching-a-public-Docker-Hub-image/qaq-p/1045777 BitBucket Pipelines has an internal Docker Image cache that is used for public Docker Hub images. 

I think that is not working as expected, because when I was pulling a custom Image (3GB) from our company's repo took, the build setup took ~2mins. After trying out a public image from Docker Hub (circleci/android:api-30), the build setup still took ~2mins on back to back attempts!!! 

So: Does BB Pipelines have caching for public Docker Hub images or not? And why was pulling an image from my company's repo as fast as using Docker Hub's public image?

 

Thanks,

Valtteri Puonti

1 answer

0 votes
ktomk
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 21, 2021

Hi Valtteri, welcome to the Atlassian Community.

Does BB Pipelines have caching for public Docker Hub images or not?

I can not speak for Atlassian, and don't know about any specific changes since  Apr 16, 2019 .

From what I know, there is caching of public images. It is not a mirror thought, so if the image was not yet cached, it will take its time. 

And why was pulling an image from my company's repo as fast as using Docker Hub's public image?

That sounds like the network speed from the registries and sounds like that the public image was not cached or the cache not fully populated across all nodes.

What I don't know:

  • If using the local cache (Docker build cache) is hindering the public cache
  • If the changes to the public Docker registry by Docker itself back around October 2020 lead to changes and which changes for the public cache.

 

References:

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events