A cache for custom private pipeline image

František Lechner June 18, 2019

Hi,

Is there a way how to cache  a custom private image for pipeline, please?

The custom image is pulled every time and it  increases unnecessarily the build time.

1 answer

0 votes
Antoine Büsch
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 25, 2019

 

Hi František,

if you are talking about the base image used in your `bitbucket-pipelines.yml` file, then unfortunately there is no way to cache private docker images. This is actually a limitation of the Docker Registry we are using.

Antoine

Paddy McCrudden September 23, 2019

Hi, Is this still the case? For example, my pipeline looks like the following:

imagepaddymccrudden/latex:ctanfull
caches:  
docker
pipelines:  
default:   
step:        
nameLatex       
script:          
pdflatex main.tex
...

But I don't think that the base image is being cached. 

Oscar West March 27, 2020

@Antoine Büsch Is this something that's being worked on? We have private images hosted on AWS ECR and would benefit greatly from these images being cached.

 

Edit: Official feature request: https://jira.atlassian.com/browse/BCLOUD-19918

Like # people like this
saga_amsterdam April 12, 2020

@Antoine Büsch Same here, really need this.

Like # people like this
vitaliy-ryaboy April 28, 2020

same here, each time to pull my image from aws-ecr i need 20-30 seconds

Edgar Vonk June 17, 2020

We also really would like to have this as we rely on custom private Docker base images heavily and at the moment pulling those Docker images from our custom Nexus Docker registry takes around 5 minutes (!) for every build. And yes, we could maybe move to a cloud Docker registry but then we still very much would want to have this.

Syed Mohammed Ali Hussaini February 19, 2021

Has this been implemented now ? Can we cache private images hosted on private registries ?

Paddy McCrudden February 21, 2021

Not to my knowledge, but it would be nice!

Syed Mohammed Ali Hussaini February 21, 2021

thanks for the reply 

Like Paddy McCrudden likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events