O'Reilly logo

Docker High Performance by Allan Espinosa

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Improving image build time

Docker images are the main resulting artifacts that developers work on all the time. The simplicity of Docker files and speed of container technology allows us to enable rapid iteration on the application that we are working on. However, these advantages of using Docker start to diminish once the time it takes to build Docker images starts to grow uncontrollably. In this section, we will discuss some cases of building Docker images that take some time to run. Then, we will give you a few tips on how to remediate these effects.

Using registry mirrors

A big contributor to image build time is the time spent in fetching upstream images. Suppose we have a Dockerfile with the following line:

FROM java:8u45-jre

This image will ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required