Skip to content

Commit 1251646

Browse files
committed
Add notes about using docker
1 parent 0c29fce commit 1251646

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ The app is built on top of `gopacket` package which provides C bindings for the
1717
go get github.com/ilyaglow/badcapt/cmd/badcapt
1818
```
1919

20+
Also you can use the docker image (see below on how to use it):
21+
```
22+
docker build -t badcapt https://github.com/ilyaglow/badcapt.git
23+
```
24+
or
25+
```
26+
docker pull ilyaglow/badcapt
27+
```
28+
2029
Usage
2130
-----
2231

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

35-
You can also take a look at
36-
[badsearch](https://github.com/ilyaglow/badcapt/tree/master/cmd/badsearch):
37-
it dumps all records in the database for the last 24 hours.
44+
To use the dockerized version you must run it with `--net=host` switch:
45+
```
46+
docker run -d ilyaglow/badcapt -i eth0
47+
```
48+
49+
You can also take a look at the
50+
[badsearch](https://github.com/ilyaglow/badcapt/tree/master/cmd/badsearch)
51+
companion script for the Elasticsearch: it dumps all records in the database for
52+
the last 24 hours.

0 commit comments

Comments
 (0)