The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Valtteri Puonti
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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:

TAGS
AUG Leaders

Atlassian Community Events