Skip to content

Commit

Permalink
Add scanning to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
arminc committed Mar 14, 2017
1 parent e33003a commit 3c10607
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,33 @@ You can find it here: https://hub.docker.com/r/arminc/clair/

### How to scan containers

Using the clair container and clair DB this is how you can scan your own Docker containere. (How about OSX docker for mac?)
Using the clair container and clair DB this is how you can scan your own Docker container.

If you are on linux skip these two steps:

```bash
docker run -d --privileged --name docker docker:1.8-dind
docker exec -ti docker /bin/sh
```

Start the clair db

```bash
docker run -d --name db arminc/clair-db:initial-14-03-2017
```

Start clair

```bash
docker run -p 6060:6060 --link db:postgres -v /tmp:/tmp -v /var/run/docker.sock:/var/run/docker.sock -d --name clair arminc/clair:v2.0.0-rc.0
```

Scan a container (How do you get a working analyze-local-images...)

```bash
analyze-local-images arminc/clair-db:initial-14-03-2017
```


## Whitelisting Solution

Expand Down

0 comments on commit 3c10607

Please sign in to comment.