mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-02-23 23:23:05 +08:00
document docker
This commit is contained in:
parent
4488d3c041
commit
9c20c91d55
2 changed files with 6 additions and 1 deletions
|
@ -9,5 +9,4 @@ COPY --from=build-env /go/bin/dnscontrol /usr/local/bin
|
|||
WORKDIR /dns
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y ca-certificates
|
||||
RUN dnscontrol version
|
||||
CMD dnscontrol
|
|
@ -99,3 +99,9 @@ dnscontrol should be installed in $GOPATH/bin
|
|||
## Via packages
|
||||
|
||||
Get prebuilt binaries from [github releases](https://github.com/StackExchange/dnscontrol/releases/latest)
|
||||
|
||||
## Via [docker](https://hub.docker.com/r/stackexchange/dnscontrol/)
|
||||
|
||||
```
|
||||
docker run --rm -it -v `pwd`/dnsconfig.js:/dns/dnsconfig.js -v `pwd`/creds.json:/dns/creds.json stackexchange/dnscontrol dnscontrol preview
|
||||
```
|
Loading…
Reference in a new issue