[SOLVED] docker build starting slow


I’m testing docker builds on two different systems. Ubuntu and Arch linux. I’m experiencing significant slow docker build starting speeds (same Dockerfile) on Arch linux (better/newer machine).

In both systems
Docker version 20.10.12
Storage Driver: overlay2

Further investigations shows that there is no delay between creation of layers. Initial time to start the build is the culprit


It was the additional DNS lookup’s causing the start delay.
Removing the extra mirrors from .docker/config.json did the trick

cat .docker/config.json 
  "credHelpers": {
    "asia.gcr.io": "gcloud"

Answered By – Sajith Silva

Answer Checked By – Gilberto Lyons (BugsFixing Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *