mpolden / echoip

IP address lookup service
https://ifconfig.co
BSD 3-Clause "New" or "Revised" License
4.01k stars 526 forks source link

flag provided but not defined #137

Closed emperorjoker closed 3 years ago

emperorjoker commented 3 years ago

I have read all the issues but did not find a solution for this problem, hope someone can help.

When I run echoip with compose, flag.String, flag.Int and flag.Var parts(-C -f -c -a -t) encountered this error. # echoip | flag provided but not defined: -f /data/country.mmdb

I tried this: # docker run --name echoip --rm -p 127.0.0.1:19980:8080 mpolden/echoip -p -r -H X-Forwarded-For It can run normally and no errors are reported, but no GeoIP database.

After I added -f -a -c -t # docker run --name echoip --rm -p 127.0.0.1:19980:8080 mpolden/echoip -p -r -H X-Forwarded-For -f /data/country.mmdb -a /data/asn.mmdb -c /data/city.mmdb -t data/html

System reported an error. echoip: main.go:58: open /data/country.mmdb: no such file or directory