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
This commit is contained in:
parent
deca1a2cc2
commit
b984aa4559
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -78,6 +78,18 @@ And then `go build` as you would normally do:
|
||||||
|
|
||||||
This should yield a `coredns` binary.
|
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
|
## Examples
|
||||||
|
|
||||||
When starting CoreDNS without any configuration, it loads the `whoami` middleware and starts
|
When starting CoreDNS without any configuration, it loads the `whoami` middleware and starts
|
||||||
|
|
Loading…
Add table
Reference in a new issue