mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-01-11 18:08:57 +08:00
DOCS: Getting started fixed Docker run command (#1997)
Co-authored-by: Aartsie <ruben@web-spot.nl> Co-authored-by: Tom Limoncelli <tlimoncelli@stackoverflow.com>
This commit is contained in:
parent
8d3de65e82
commit
db71b022d6
1 changed files with 8 additions and 1 deletions
|
@ -26,7 +26,14 @@ sudo port install dnscontrol
|
|||
You can use DNSControl locally using the Docker image from [Docker hub](https://hub.docker.com/r/stackexchange/dnscontrol/) and the command below.
|
||||
|
||||
```shell
|
||||
docker run --rm -it -v $(pwd)/dnsconfig.js:/dns/dnsconfig.js -v $(pwd)/creds.json:/dns/creds.json stackexchange/dnscontrol preview
|
||||
docker run --rm \
|
||||
-it \
|
||||
-v $(pwd)/dnsconfig.js:/dns/dnsconfig.js \
|
||||
-v $(pwd)/creds.json:/dns/creds.json \
|
||||
-v $(pwd)/zones/:/dns/zones/ \
|
||||
-u $(id -u ${USER}):$(id -g ${USER}) \
|
||||
stackexchange/dnscontrol \
|
||||
preview
|
||||
```
|
||||
|
||||
### Binaries
|
||||
|
|
Loading…
Reference in a new issue