aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-09-13 16:36:20 -0700
committerGravatar GitHub <noreply@github.com> 2017-09-13 16:36:20 -0700
commitb984aa45595dc95253b91191afe7d3ee29e71b48 (patch)
tree02c5a9adb854e4b0741ba23a8120e546c4983385 /README.md
parentdeca1a2cc2191586ae41788f9d8dd1936f967550 (diff)
downloadcoredns-b984aa45595dc95253b91191afe7d3ee29e71b48.tar.gz
coredns-b984aa45595dc95253b91191afe7d3ee29e71b48.tar.zst
coredns-b984aa45595dc95253b91191afe7d3ee29e71b48.zip
Update documentation README.md for building coredns with docker (#1073)
* Update documentation README.md for building coredns with docker Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update README.md * Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/README.md b/README.md
index e9f2d03cd..55d1418ee 100644
--- a/README.md
+++ b/README.md
@@ -78,6 +78,18 @@ And then `go build` as you would normally do:
This should yield a `coredns` binary.
+## Compilation with docker
+
+CoreDNS requires golang to compile. However, if you already have docker installed and prefer not to setup
+golang environment, you could build coredns easily:
+
+```
+$ docker run --rm -i -t -v $PWD:/go/src/github.com/coredns/coredns \
+ -w /go/src/github.com/coredns/coredns golang:1.9 make
+```
+
+The above command alone will have `coredns` binary generated.
+
## Examples
When starting CoreDNS without any configuration, it loads the `whoami` middleware and starts