Step (1). Install Docker on Ubuntu 14.04 LTS:
$ sudo apt-get install docker.io
Step (2). freegeoip listen on port 12904, run the following command:
Step (2). freegeoip listen on port 12904, run the following command:
$ sudo docker run --restart=always -p 12904:12904 -d fiorix/freegeoip -http 0.0.0.0:12904
Step (3). Test:
Step (3). Test:
$ curl localhost:12904/json/1.2.3.4
Comments
Post a Comment