Skip to content
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

Failed to analyze using API #149

Open
karthiknannapaneni opened this issue Apr 14, 2019 · 2 comments
Open

Failed to analyze using API #149

karthiknannapaneni opened this issue Apr 14, 2019 · 2 comments

Comments

@karthiknannapaneni
Copy link

docker run -e CLAIR_ADDR="http://localhost:6060" -e CLAIR_OUTPUT=Unknown -e CLAIR_THRESHOLD=10 klar centos:7
clair timeout 1m0s
docker timeout: 1m0s
no whitelist file
Analysing 1 layers
Failed to analyze using API v1: push image https://registry-1.docker.io/v2/library/centos:7 to Clair failed: can't push layer to Clair: Post http://localhost:6060/v1/layers: dial tcp 127.0.0.1:6060: getsockopt: connection refused

Failed to analyze using API v3: push image https://registry-1.docker.io/v2/library/centos:7 to Clair failed: rpc error: code = Unavailable desc = all SubConns are in TransientFailure

@sanyer
Copy link

sanyer commented Jul 22, 2019

I'm experiencing same problem:
can't push layer to Clair: Post http://localhost:6060/v1/layers: dial tcp 127.0.0.1:6060: getsockopt: connection refused
At the same time, curl 'http://localhost:6060/v1/layers' with proper payload works.

@sanyer
Copy link

sanyer commented Jul 24, 2019

Ok, it was caused by kubectl port-forward.
127.0.0.1:6060 inside container is not the same as on host machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants