<p><a href="https://github.com/arminc/clair-scanner" rel="nofollow noreferrer">Clair-scanner</a> is able to scan the images locally.</p>

<p><a href="https://github.com/arminc/clair-scanner/issues/13" rel="nofollow noreferrer">https://github.com/arminc/clair-scanner/issues/13</a></p>

<blockquote>
<pre><code>docker run --net=host -d --name db arminc/clair-db:2017-09-18
docker run --net=host --add-host postgres:127.0.0.1 -d --name clair --net=host arminc/clair-local-scan:v2.0.1
./clair-scanner nginx:1.11.6-alpine example-nginx.yaml http://127.0.0.1:6060 127.0.0.1
</code></pre>
</blockquote>

CC BY-SA 3.0
2017-10-04T06:58:11.917Z
2017-10-04T06:58:11.917Z
030
<p><a href="https://github.com/coreos/clair/blob/master/Documentation/integrations.md" rel="nofollow noreferrer">This clair documentation</a> indicates that a number of tools should be able to scan images:</p>

<ul>
<li>clair-scanner</li>
<li>reg</li>
<li>klar</li>
<li>clairctl</li>
</ul>

<p>analyze-local-images</p>

<p>All of them have been tried, but none of them seems to work. All kind of issues occurred, including this:</p>

<pre><code>2017-09-19 11:11:23.022625 I | Analyzing faild: Could not analyze layer: 
Got response 400 with message {"Error":{"Message":"could not find layer"}}
</code></pre>

<p>Another issue that occurred using clairctl:</p>

<pre><code>panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x518490]
</code></pre>

<blockquote>
  <p>does this happen with all images including official like ubuntu,
  alpine, tomcat?</p>
</blockquote>

<p>Using clairctl it was possible to scan postgres an other images that are available on dockerhub, but scanning local images failed </p>

CC BY-SA 3.0
2017-09-19T09:27:13.140Z
does this happen with all images including official like ubuntu, alpine, tomcat?
Ta Mu
CC BY-SA 3.0
2017-09-19T10:12:35.810Z
Using clairctl it was possible to scan postgres an other images that are available on dockerhub, but scanning local images failed
030
<security><clair>
What tool is able to analyze images by connecting to clair?
030
# What tool is able to analyze images by connecting to clair?

(Asked by: username_0 on 2017-09-19)

This clair documentation indicates that a number of tools should be able to scan images:

clair-scanner
reg
klar
clairctl

analyze-local-images
All of them have been tried, but none of them seems to work. All kind of issues occurred, including this:
2017-09-19 11:11:23.022625 I | Analyzing faild: Could not analyze layer: 
Got response 400 with message {"Error":{"Message":"could not find layer"}}

Another issue that occurred using clairctl:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x518490]


does this happen with all images including official like ubuntu,
  alpine, tomcat?

Using clairctl it was possible to scan postgres an other images that are available on dockerhub, but scanning local images failed

**Tags:** security, clair

> **Comments:**
> **username_1**: does this happen with all images including official like ubuntu, alpine, tomcat?  
> **username_0**: Using clairctl it was possible to scan postgres an other images that are available on dockerhub, but scanning local images failed  

---

## 1 answers

### Answer by username_0 on 2017-10-04. Score: 0 | Accepted answer

Clair-scanner is able to scan the images locally.
https://github.com/arminc/clair-scanner/issues/13

docker run --net=host -d --name db arminc/clair-db:2017-09-18
docker run --net=host --add-host postgres:127.0.0.1 -d --name clair --net=host arminc/clair-local-scan:v2.0.1
./clair-scanner nginx:1.11.6-alpine example-nginx.yaml http://127.0.0.1:6060 127.0.0.1


---

