Skip to content

Commit

Permalink
Add notes about using docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Apr 19, 2019
1 parent 0c29fce commit 1251646
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ The app is built on top of `gopacket` package which provides C bindings for the
go get github.com/ilyaglow/badcapt/cmd/badcapt
```

Also you can use the docker image (see below on how to use it):
```
docker build -t badcapt https://github.com/ilyaglow/badcapt.git
```
or
```
docker pull ilyaglow/badcapt
```

Usage
-----

Expand All @@ -32,6 +41,12 @@ Usage of badcapt:
If no Elasticsearch URL provided, badcapt will simply output records to the
screen.

You can also take a look at
[badsearch](https://github.com/ilyaglow/badcapt/tree/master/cmd/badsearch):
it dumps all records in the database for the last 24 hours.
To use the dockerized version you must run it with `--net=host` switch:
```
docker run -d ilyaglow/badcapt -i eth0
```

You can also take a look at the
[badsearch](https://github.com/ilyaglow/badcapt/tree/master/cmd/badsearch)
companion script for the Elasticsearch: it dumps all records in the database for
the last 24 hours.

0 comments on commit 1251646

Please sign in to comment.