Skip to content

Commit

Permalink
Merge pull request fiorix#246 from samnissen/update-docker-install-in…
Browse files Browse the repository at this point in the history
…structions

Point Docker install instructions to Docker documentation
  • Loading branch information
fiorix authored Oct 11, 2017
2 parents 989e6d4 + e4aa36a commit 5f4c051
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,25 @@ This section is for people who desire to run the freegeoip web server on their o

### Docker

Install Docker on Ubuntu:
#### Install Docker

```bash
sudo apt-get install docker.io
```

Install Docker on CentOS 7:

```bash
yum install docker
```
Docker has [install instructions for many platforms](https://docs.docker.com/engine/installation/),
including
- [Ubuntu](https://docs.docker.com/engine/installation/linux/docker-ce/ubuntu/)
- [CentOS](https://docs.docker.com/engine/installation/linux/docker-ce/centos/)
- [Mac](https://docs.docker.com/docker-for-mac/install/)

Run the freegeoip web server:
#### Run the API in a container

```bash
docker run --restart=always -p 8080:8080 -d fiorix/freegeoip
```

Test:
#### Test

```bash
curl localhost:8080/json/1.2.3.4
# => {"ip":"1.2.3.4","country_code":"US","country_name":"United States", # ...
```

### Other Linux, OS X, FreeBSD, and Windows
Expand Down

0 comments on commit 5f4c051

Please sign in to comment.