1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

Update README.md

This commit is contained in:
Timothy Ye 2017-09-15 16:30:28 +08:00 committed by GitHub
parent 52a1005791
commit e0dd532cfe

View File

@ -100,16 +100,13 @@ sudo systemctl enable godns
sudo systemctl start godns
```
## Run it in docker
## Run it with docker
Now godns supports to run in docker.
* Pull godns image from docker hub:
```bash
docker pull timothyye/godns:1.2
```
* Run godns in container and pass config parameters to it via enviroment variables:
* Get [config_sample.json](https://github.com/timothyye/godns/blob/master/config_sample.json) from Github.
* Rename it to **config.json**.
* Run godns with docker:
```bash
docker run -d --name godns --restart=always \