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:
Aartsie 2023-01-29 15:21:07 +01:00 committed by GitHub
parent 8d3de65e82
commit db71b022d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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