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

Unable to scan the images #104

Open
meruvavenkatesh opened this issue Apr 21, 2020 · 1 comment
Open

Unable to scan the images #104

meruvavenkatesh opened this issue Apr 21, 2020 · 1 comment

Comments

@meruvavenkatesh
Copy link

Hi,

Following the Github URL - https://github.com/arminc/clair-scanner to scan the images in docker platform.
I observed two issues as below.

  1. Not able to run "go get -d -u github.com/arminc/clair-scanner" this command, but I have installed go, deb packages.

  2. Not able to scan the images
    ubuntu@ip-10-0-124-61:~/go/src/github.com/arminc/clair-scanner$ clair-scanner --ip=172.17.0.1 aiindevops.azurecr.io/aiindevops/onprem/kibana:6.4.2
    2020/04/21 14:30:23 [INFO] ▶ Start clair-scanner
    2020/04/21 14:30:34 [INFO] ▶ Server listening on port 9279
    2020/04/21 14:30:34 [INFO] ▶ Analyzing b4c3450571ef813dd4b9a81c51bea12c5f062f34dee11fdb9c7ccd005b970382
    2020/04/21 14:30:34 [CRIT] ▶ Could not analyze layer: POST to Clair failed Post http://127.0.0.1:6060/v1/layers: dial tcp 127.0.0.1:6060: connect: connection refused

Please guide me

@wuxler
Copy link

wuxler commented Nov 9, 2020

Hi,

Following the Github URL - https://github.com/arminc/clair-scanner to scan the images in docker platform.
I observed two issues as below.

  1. Not able to run "go get -d -u github.com/arminc/clair-scanner" this command, but I have installed go, deb packages.
  2. Not able to scan the images
    ubuntu@ip-10-0-124-61:~/go/src/github.com/arminc/clair-scanner$ clair-scanner --ip=172.17.0.1 aiindevops.azurecr.io/aiindevops/onprem/kibana:6.4.2
    2020/04/21 14:30:23 [INFO] arrow_forward Start clair-scanner
    2020/04/21 14:30:34 [INFO] arrow_forward Server listening on port 9279
    2020/04/21 14:30:34 [INFO] arrow_forward Analyzing b4c3450571ef813dd4b9a81c51bea12c5f062f34dee11fdb9c7ccd005b970382
    2020/04/21 14:30:34 [CRIT] arrow_forward Could not analyze layer: POST to Clair failed Post http://127.0.0.1:6060/v1/layers: dial tcp 127.0.0.1:6060: connect: connection refused

Please guide me

  1. Maybe you need to start 2 containers before run clair-scanner ? Reference here: https://github.com/arminc/clair-local-scan
    You need to execute docker run -d --name clair-db arminc/clair-db:latest and docker run -p 6060:6060 --link clair-db:postgres -d --name clair arminc/clair-local-scan:latest first. Then build local and execute scanner.

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