Skip to content

Commit

Permalink
docs: update docker run command
Browse files Browse the repository at this point in the history
  • Loading branch information
hatamiarash7 committed Jan 6, 2025
1 parent c83e221 commit 41e36de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ Or you can use Docker:
```bash
docker run -d \
--name ipset-exporter \
-p 4613:4613 \
--net host \
-v /path/to/config.yml:/app/configs/config.yml \
-e CONFIG_FILE=/app/configs/config.yml \
--cap-add=NET_ADMIN \
hatamiarash7/ipset-exporter:latest
```

The Docker container needs to run with `NET_ADMIN` capability to fetch ipset data. Also, you should run it with `--net host` to access the host network namespace.

## Configuration

You can configure the exporter using a YAML file. The example configuration is:
Expand Down

0 comments on commit 41e36de

Please sign in to comment.