clair-scanner
clair-scanner copied to clipboard
Cannot post to clair
I have the cliar:v2.0.8 server running on the same instances as clair-scanner:v12, and cannot seem to scan any container:
[barry@ops-nomad-client-2 10.0.197.101]$ ./cs --ip='10.0.197.101' --clair='http://10.0.197.101:6060' imiell/bad-dockerfile:latest
2019/07/10 19:12:48 [INFO] ▶ Start clair-scanner
2019/07/10 19:13:16 [INFO] ▶ Server listening on port 9279
2019/07/10 19:13:16 [INFO] ▶ Analyzing 216168069a5195a9424b3a73a62bda39e4d5f8dcae2f7149a336c2e29beeb06b
2019/07/10 19:13:16 [CRIT] ▶ Could not analyze layer: POST to Clair failed Post http://10.0.197.101:6060/v1/layers: EOF
I've seen other issues that are similar to this, but none have EOF.
I don't see any logs entries in the clair server, so I'm guessing this never gets there. Are there any debug flags for clair-scanner?
I get a similar error with klar
[barry@ops-nomad-client-2 10.0.197.101]$
[barry@ops-nomad-client-2 10.0.197.101]$ sudo CLAIR_ADDR='10.8.197.101' ./klar imiell/bad-dockerfile:latest
clair timeout 1m0s
docker timeout: 1m0s
no whitelist file
Analysing 20 layers
Failed to analyze using API v1: push image https://registry-1.docker.io/v2/imiell/bad-dockerfile:latest to Clair failed: can't push layer to Clair: Post http://10.8.197.101:6060/v1/layers: dial tcp 10.8.197.101:6060: i/o timeout
But it is references the docker.io registry. I am trying to scan a local image.