Reputation: 823
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
Upvotes: 0
Views: 1392
Reputation: 823
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"
}
}
Upvotes: 1