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

Reuse Docker Image Across Multiple Steps

Rob Scott April 9, 2018

Currently we have pipelines that build an image, and then want to run tests with that image. Importantly, we want to run those tests in parallel. Our best workaround right now has been to build and push the image, then pull it for each of the parallel testing steps. We've tried the Docker caching on each step like this:

services: 
  - docker
caches:
  - docker

 

Unfortunately that hasn't worked for us either, the images built in the first step still have to be pulled for subsequent steps. This seems like the kind of thing that should already exist, are we missing something obvious here?

1 answer

0 votes
davina
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2018

Hi @Rob Scott

This is currently not supported natively, but I suggest you raise a feature request here.

In the meantime, we do have docker layer caching, configured via the yaml snippet you included above which should make pulls faster between builds.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events