Forums

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

Cache DockerHub Docker image in bitbucket pipeline?

Gnanamadhu
Contributor
March 21, 2019

I am using external docker image from dockerhub.

In each step the dockerimage is pulled from dockerhub again and again. Yes it is desired workflow.

My question is can we cache this image, so that it wont pull from dockerhub in each step? This DockerImage is not going to change frequently, as it has only node and meteor as preinstalled. 

 

So is it possible to cache the docker image?

1 answer

0 votes
Philip Hodder
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2019

Hello Gnanamadhu,

We have an internal Dockerhub Mirror which caches *public Dockerhub images* inside of our build cluster. So docker pull times should be shorter on subsequent pipeline runs. You will still need to run Docker pull as each step is ephemeral, so the Docker image will not be present in your step by default.

If you are building new Docker images as part of your Pipelines build, then you can also consider using our Docker caches feature. However, that doesn't appear to be what you're trying to do here.

If you have any follow-up questions, it would be helpful if you could provide an example bitbucket-pipelines.yml script to give us a bit more context on your workflow.

Thanks,

Phil

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events