From d220aa4241314802ad2d0238607495e4642f96f3 Mon Sep 17 00:00:00 2001 From: Timothy Date: Fri, 1 Jul 2016 15:41:00 +0800 Subject: [PATCH] Update readme file --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 91e6999..8fed79f 100644 --- a/README.md +++ b/README.md @@ -54,4 +54,25 @@ nohup ./godns & sudo start godns ``` -## Enjoy it! +## Run it as a daemon, manage it via Upstart + +Now godns supports to run in docker. + +* Pull godns image from docker hub: +```bash +docker pull timothyye/godns:1.0 +``` + +* Run it in container and pass config parameters to it via enviroment variables: + +```bash +docker run -d --name godns --restart=always \ +-e EMAIL=your_dnspod_account \ +-e PASSWORD=your_dnspod_password \ +-e DOMAIN=your_domain \ +-e SUB_DOMAIN=your_sub_domain DOCKER_IMAGE_ID +``` + + + +## Enjoy it! \ No newline at end of file