Home > Software engineering >  docker build starting slow
docker build starting slow

Time:02-06

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

CodePudding user response:

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"
  }
}
  •  Tags:  
  • Related