-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
resolver: update to new registryhosts based config #1397
Conversation
fc8a518
to
b905b19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. We should also support specifying CA and client certs, but can be a follow-up PR.
16151a0
to
5697fa8
Compare
Signed-off-by: Tonis Tiigi <[email protected]>
5697fa8
to
2c3cf11
Compare
@AkihiroSuda Some updates were needed for CI to pass. PTAL again |
h.Scheme = "http" | ||
} else if c.Insecure != nil && *c.Insecure { | ||
h.Client = &http.Client{ | ||
Transport: tracing.NewTransport(&http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks god we have this patch. we are using version 0.6.2 and use http2 to push/pull image if there is no TLSClientConfig. The http2 flow control is killing me which makes the push very slow.
anyway, nice to have this patch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fuweid I think this requires more optimization actually. Afaics the issue with the array model is that it doesn't lock to the specific config when other fail. So it keeps retrying the ones that will fail for every request making things like mirrors inefficient.
The commit claiming to fix this issue seems to be included in buildkit 0.7.0+. Can someone help me understand how can I find out which version of docker includes buildkit 0.7.0? I don't seem to see |
@akavel docker uses Docker 19.03 uses BuildKit v0.6.x, but the v20.10.0 release candidates are upgraded to v0.8.x |
@thaJeztah thanks!!!! ❤️ |
fixes #1394
fixes #1271
@dmcgowan
Signed-off-by: Tonis Tiigi [email protected]