Browse Source
Add comment regarding "no such host" issues when using `docker run`
pull/5/head
Lukas Wolfsteiner
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
11 additions and
0 deletions
-
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. |
|
|
|