-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docker builds are slow, hanging on docker-credential-gcloud get #11
Comments
Please try running |
I found that changing those credHelpers from "gcloud" to "gcr" gets things back up to normal build speeds. Whatever is causing this issue is only present in |
Issue filed: https://issuetracker.google.com/issues/78632439 |
There was also a bug in Docker, fixed in 18.03, which made the credential gathering step of Apologies for not swinging around and adding a note to this bug. |
@gsf are you using |
A general tip for those that find their way here: Docker's client config default location is
|
I'm running on Cloud Shell, and you're right that removing all credHelpers but "gcr.io" speeds things up but in my case that would only be necessary when the credHelper is gcloud. With gcr as the credHelper the delay is not enough to be noticeable. See my update on the Cloud SDK issue I filed. |
Not sure what changed (or exactly when) but on Cloud Shell the gcr credHelper is now as slow as gcloud. |
They recently updated to v1.5.0 in the cloud shell. I'll explore and see if they can do this as default, but for now you can run |
I think I was hitting some general networking issues with GCR when I commented before. Aside from the slowdown, there were also periods when I couldn't authenticate to push new images. But things are snappy and happy today. Also, while troubleshooting I noticed the following is now in # Setup docker env
export DOCKER_HOST=unix:///var/run/docker.sock
(docker-credential-gcr configure-docker &>/dev/null &) That list of hostnames isn't a problem as long as the conversation with each registry is quick, but when builds start to hesitate the first thing I do is trim it down. |
I had similar issue. It disappeared after executing
After that |
waw writing complexity of isue awesome bro |
Docker builds when using gcloud credential helper take a long time to start.
Steps to reproduce:
I have a simple Dockerfile and no existing credentials configured.
I build it and it's very quick as one would expect.
I then use credential helper:
Builds now take a loooong time start:
I observe this when waiting for docker build:
I have yet to get much from tracing
docker-credential-gcloud get
but will update when I find more.The text was updated successfully, but these errors were encountered: