Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Posted in Trello

Taco Tuesday: Your favorite Trello blog takeaway

Hello friends! From the community that brought you Welcome Wednesday, Throwback Thursday and Friday Fun, welcome to Taco Tuesday, a weekly discussion about all things Trello. The best part? One Tac...

67 views 4 3
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you