GithubHelp home page GithubHelp logo

While running the clair-container-scan script for local images sometimes it fails with "No image Scanned" message about clair-container-scan HOT 7 OPEN

nishanthboovathy avatar nishanthboovathy commented on September 26, 2024
While running the clair-container-scan script for local images sometimes it fails with "No image Scanned" message

from clair-container-scan.

Comments (7)

usr42 avatar usr42 commented on September 26, 2024 1

I can reproduce the issue and will investigate.

Thanks for the information!

from clair-container-scan.

mfmcdonagh avatar mfmcdonagh commented on September 26, 2024

I got the same error when i tried to scan alpine:edge today

from clair-container-scan.

usr42 avatar usr42 commented on September 26, 2024

clair-container-scan is not pulling images, but only scanning locally available images, yet.
So, if the image your trying to scan is not available, it will result in a No image scanned output.

@mfmcdonagh Can you try to run:

docker pull alpine:edge

before you run

./clair-container-scan.sh alpine:edge

Is the issue then still happening?

@nishanthboovathy Sorry, that I did not respond earlier. I somehow missed your message.
Did the issue for you also happen, when you were scanning a particular image?

from clair-container-scan.

mfmcdonagh avatar mfmcdonagh commented on September 26, 2024

[gen] mc@onagm ~/tmp $ docker pull docker.io/alpine:edge
edge: Pulling from library/alpine
Digest: sha256:6199d795f07e4520fa0169efd5779dcf399cbfd33c73e15b482fcd21c42e1750
Status: Image is up to date for alpine:edge
[gen] mc@onagm ~/tmp $ ./clair-container-scan.sh alpine:edge
No image scanned.

Sorry but that didn't help

from clair-container-scan.

usr42 avatar usr42 commented on September 26, 2024

It seems to be an clair issue:
This is the output I get when running manually:

2019/03/08 13:47:26 [INFO] ▶ Start clair-scanner
2019/03/08 13:47:27 [INFO] ▶ Server listening on port 9279
2019/03/08 13:47:27 [INFO] ▶ Analyzing bceea3f8448a2364d40fb31ef81d1a68437bb05d0701615f0959bc0095ca72e2
2019/03/08 13:47:27 [CRIT] ▶ Could not analyze layer: Clair responded with a failure: Got response 422 with message {"Error":{"Message":"worker: OS and/or package manager are not supported"}}

Maybe Clair has to be updated.

from clair-container-scan.

mfmcdonagh avatar mfmcdonagh commented on September 26, 2024

should i log an issue for it on coreos/clair ?

from clair-container-scan.

usr42 avatar usr42 commented on September 26, 2024

It still seems to happen with the latest 2.0.7 version of clair. Logging an issue directly on coreos/clair is a good idea.

from clair-container-scan.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.