mirror of
https://github.com/taigrr/godns
synced 2025-01-18 04:03:25 -08:00
Update README.md
This commit is contained in:
parent
52a1005791
commit
e0dd532cfe
11
README.md
11
README.md
@ -100,16 +100,13 @@ sudo systemctl enable godns
|
|||||||
sudo systemctl start godns
|
sudo systemctl start godns
|
||||||
```
|
```
|
||||||
|
|
||||||
## Run it in docker
|
## Run it with docker
|
||||||
|
|
||||||
Now godns supports to run in docker.
|
Now godns supports to run in docker.
|
||||||
|
|
||||||
* Pull godns image from docker hub:
|
* Get [config_sample.json](https://github.com/timothyye/godns/blob/master/config_sample.json) from Github.
|
||||||
```bash
|
* Rename it to **config.json**.
|
||||||
docker pull timothyye/godns:1.2
|
* Run godns with docker:
|
||||||
```
|
|
||||||
|
|
||||||
* Run godns in container and pass config parameters to it via enviroment variables:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d --name godns --restart=always \
|
docker run -d --name godns --restart=always \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user