optiopay / klar

Integration of Clair and Docker Registry
MIT License
505 stars 138 forks source link

Client.Timeout exceeded while awaiting headers #88

Closed roxspring closed 6 years ago

roxspring commented 6 years ago

I'm seeing the following an awful lot: Failed to analyze using API v1: push image <nameofimage> to Clair failed: can't push layer to Clair: Post <clairurl>/v1/layers: net/http: request canceled (Client.Timeout exceeded while awaiting headers)

Presumably because clair is initially empty and having to download all the layers afresh, therefore taking more than whatever default timeout is set.

Is there a configuration option or preferably an environment variable I can use to increase the timeout?

hashmap commented 6 years ago

Yeah, let's extend the default timeout + add env var to control it. I will add it to upcoming 2.1.0 release.