mirror of
https://github.com/sberk42/fritzbox_exporter.git
synced 2026-05-17 06:46:48 +00:00
Add comment regarding "no such host" issues when using docker run
This commit is contained in:
committed by
GitHub
parent
306716b1b8
commit
74e9d4e3f1
11
README.md
11
README.md
@@ -49,6 +49,17 @@ $ docker run -e 'USERNAME=your_fritzbox_username' \
|
||||
fritzbox-prometheus-exporter:latest
|
||||
```
|
||||
|
||||
I've you're getting `no such host` issues, define your FritzBox as DNS server for your docker container like this:
|
||||
|
||||
```bash
|
||||
$ docker run --dns YOUR_FRITZBOX_IP \
|
||||
-e 'USERNAME=your_fritzbox_username' \
|
||||
-e 'PASSWORD=your_fritzbox_password' \
|
||||
-e 'GATEWAY_URL="http://192.168.0.1:49000"' \
|
||||
-e 'LISTEN_ADDRESS="0.0.0.0:9042"' \
|
||||
fritzbox-prometheus-exporter:latest
|
||||
```
|
||||
|
||||
### Using docker-compose
|
||||
|
||||
Set your environment variables within the [docker-compose.yml](docker-compose.yml) file.
|
||||
|
||||
Reference in New Issue
Block a user