Skip to content

Instantly share code, notes, and snippets.

@xinzweb
Last active August 17, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xinzweb/ff1753514bc27afc3adfc265cee96a75 to your computer and use it in GitHub Desktop.
Save xinzweb/ff1753514bc27afc3adfc265cee96a75 to your computer and use it in GitHub Desktop.
`docker build` paused 10 seconds before `Sending build context`

I recently experienced slow down with docker build, after I ran gcloud auth configure-docker.

The 10 seconds slow down is caused by the extra step of gcloud authentication, even though you are not using the gcr.io registry in your current build.

To solve this problem, just rename the file under ~/.docker/config.json to something else, like:

mv ~/.docker/config.json ~/.docker/config.json.gcloud

Then, it will speed-up your docker build a lot. If you need that authentication, just move it back then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment