Hi, I have a very common situation that prevents Clair from analysing the 
image.  I'm looking for a change in usage, a workaround or a fix.

If I build a product based upon a standard Ubuntu image pulled from 
hub.docker.com, there seem to be layers registered but missing.  The 
typical analysis log looks like:

*00:00:37.155* + bin/analyze-local-images -endpoint http://clair.internal:6060 
-my-address 10.203.0.164 
registry.internal/security-portal/core_server:latest*00:00:37.159* 2017-02-01 
10:17:00.812921 I | Saving registry.internal/security-portal/core_server:latest 
to local disk (this may take some time)*00:00:55.329* 2017-02-01 
10:17:18.982329 I | Retrieving image history*00:00:55.373* 2017-02-01 
10:17:19.027342 I | Setting up HTTP server (allowing: 
clair.internal)*00:00:55.474* 2017-02-01 10:17:19.127601 I | Analyzing 16 
layers... *00:00:55.474* 2017-02-01 10:17:19.127648 I | Analyzing 
89aec0449e9304fa08a094af17a00d80c6c60e27fb8253345aba69d200dcece5*00:00:55.481* 
2017-02-01 10:17:19.135038 I | Analyzing 
e4b7b4e59675b9b41a5d85052e182f601768a50d33e425f059a2ff8b7d6759d4*00:00:55.486* 
2017-02-01 10:17:19.139699 I | Analyzing 
6c2e47f0c2e8859c63385921d3e32fbddec167a85048f9403483052e6be58559*00:00:55.489* 
2017-02-01 10:17:19.143159 I | Analyzing 
4d52f2c0237500243bc62d5440a021d84608055b64e2b27c0066b92903f9759e*00:00:55.492* 
2017-02-01 10:17:19.146397 I | Analyzing 
0103bd42189958170de176f1a9c7f0a967ce4f81656edc43793f6311be899883*00:00:55.524* 
2017-02-01 10:17:19.177239 I | Analyzing 
fdb104d595f500ee39bef4e43e824d27fee8b8a3a34f9a284d944455d75f66eb*00:00:55.527* 
2017-02-01 10:17:19.181645 I | Analyzing 
2b72b018e97bcc9e29ee6de28a94821fca4386200bbaca4de7b21fbd28e89836*00:00:55.531* 
2017-02-01 10:17:19.185355 I | Analyzing 
dd7e6d31945fbf42c5b90fa7ec5b7869e38902d6d5f996c8924b66ff9757edb5*00:00:55.535* 
2017-02-01 10:17:19.189399 I | Analyzing 
b90d72b3e43e250b90d577b7871803ae2a75057b67d08d1224cb0f3e7ebfe2c8*00:00:55.538* 
2017-02-01 10:17:19.192546 I | Analyzing 
7a596787644fb75af51a46cc759b887104d1144b5dc1594acff5e5c219662c3e*00:00:55.542* 
2017-02-01 10:17:19.196105 I | Analyzing 
06bfcca8c4872bb364ad4adc6bebfdf09ebfac32a6c3e89db5854b3499f93e0e*00:00:55.576* 
2017-02-01 10:17:19.229520 I | Could not analyze layer: Got response 400 with 
message {"Error":{"Message":"could not find layer"}}*00:00:55.688* Build step 
'Execute shell' marked build as failure

Since this issue is affecting a majority of the images that I need to be 
checked, how can I analyze these images using Clair successfully?

Reply via email to