-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Cannot analyze image using analyze-local-images #32
Comments
@Quentin-M I ran this to install the tool: go get -u github.com/coreos/clair/contrib/analyze-local-images but I'm not mounting /tmp. Should I? |
@Quentin-M after adding -v /tmp:/tmp to the way the clair contained is created, everything works as expected. Sorry for the duplicate, but it would be nice if this is documented somewhere (or if the webserver is always launched no matter the endpoint configuration). Anyhow, thanks for the tip. |
My pleasure. I just improved the README. |
@Quentin-M when I launch clair, I see this 2015-11-24 21:34:37.511696 I | updater/fetchers: fetching Debian vulneratibilities
2015-11-24 21:34:37.511802 I | updater/fetchers: fetching Red Hat vulneratibilities
2015-11-24 21:34:37.511894 I | updater/fetchers: fetching Ubuntu vulneratibilities but it does not seem to finish. I took a quick look at the container with USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 1.8 0.2 479912 43404 ? Ssl+ 21:34 0:01 clair --db-type=bolt --db-path=/db/database --log-level=debug
root 13 42.8 3.1 585080 508000 ? R+ 21:34 0:38 /usr/bin/python /usr/bin/bzr branch lp:ubuntu-cve-tracker /tmp/ubuntu-cve-tracker508522274/repository
root 16 0.0 0.0 20232 1996 ? Ss 21:35 0:00 bash
root 25 0.0 0.0 17484 1120 ? R+ 21:36 0:00 ps aux so I have two questions:
Sorry to ask in the same ticket, if there is a mailing list for Clair, I will be more than happy to send an email there. |
Eventually the python process will go away (I assume because it finishes successfully, thought there is no log entry suggesting that) and all I see is this: ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 3.9 0.6 541988 109560 ? Ssl+ 21:34 0:11 clair --db-type=bolt --db-path=/db/database --log-level=debug
root 16 0.0 0.0 20232 1996 ? Ss 21:35 0:00 bash
root 28 0.0 0.0 17484 1132 ? R+ 21:39 0:00 ps aux which is fine I guess. My problem here is that I am analyzing an image which is based on CentOS:6.6 and when I run the tool it just says BRAVO :). Not that I'm not happy for such a message but I just find it strange, so I want to make sure that everything is in place before telling myself that clair does not detect any security vulnerability. |
There is currently no mailing list.
Edit: The fact that the python process is finished doesn't mean that the update is finished. It still needs to parse the Ubuntu vulnerabilities and then insert everything in the database. |
@Quentin-M all right. I will keep an eye on it and wait until it's done. Some more information will be nice though just to keep the impatient user (like me) on the loop. |
I'm trying to run the
analyze-local-images
but I get an error like this:Is this an issue with the tool or clair? I'm running docker 1.9.1 with
latest
clair tag:The text was updated successfully, but these errors were encountered: