Skip to content

Consider existing Docker images as cache sources

King Chung Huang requested to merge (removed):docker-image-cache-from into master

When building a Docker image via a Dockerfile, attempt to pull an existing build of the image or the latest tag of the image as cache sources.

The Docker engine in the build stage likely does not have access to any images from previous runs of the job. By pulling previously built images and specifying them with the --cache-from option in docker image build, Docker can potentially avoid rebuilding image layers that have not changed, improving build performance.

See the docker image build command-line reference for more information.

Merge request reports