gree-gorey / geoip-exporter

GeoIP exporter for Prometheus
Apache License 2.0
35 stars 10 forks source link

docker : x509: failed #3

Open badsmoke opened 4 years ago

badsmoke commented 4 years ago

docker gives me an error, so it cannot retrieve the ip addresses

Get https://freegeoip.live/json/172.17.0.1: x509: failed to load system roots and no roots provided
Get https://freegeoip.live/json/192.168.1.75: x509: failed to load system roots and no roots provided
pjamenaja commented 2 years ago

Not sure if this project is still active. I submitted PR to fix this issue here https://github.com/gree-gorey/geoip-exporter/pull/5/files.

Add this line in the Dockerfile will solve the issue.

RUN apk --no-cache add ca-certificates