DOCS: Improved docker instructions (#2532)

This commit is contained in:
Tom Limoncelli 2023-08-23 10:27:13 -04:00 committed by GitHub
parent d4f6e01e7a
commit c2eb98993c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 12 deletions

View file

@ -103,7 +103,13 @@ Running `dnscontrol preview` will talk to the providers (here name.com as regist
Running `dnscontrol push` will make those changes with the provider and my dns records will be correctly updated. Running `dnscontrol push` will make those changes with the provider and my dns records will be correctly updated.
See [Getting Started](https://docs.dnscontrol.org/getting-started/getting-started) page on documentation site. The easiest way to run DNSControl is to use the Docker container:
```
docker run --rm -it -v "$(pwd):/dns" ghcr.io/stackexchange/dnscontrol preview
```
See [Getting Started](https://docs.dnscontrol.org/getting-started/getting-started) page on documentation site to get started!
## Benefits ## Benefits

View file

@ -23,19 +23,10 @@ sudo port install dnscontrol
### Docker ### Docker
You can use DNSControl locally using the Docker image from [Docker hub](https://hub.docker.com/r/stackexchange/dnscontrol/) and the command below. You can use DNSControl locally using the Docker image from [Docker hub](https://hub.docker.com/r/stackexchange/dnscontrol/) or [Github Container Registry](https://github.com/stackexchange/dnscontrol/pkgs/container/dnscontrol) and the command below.
```shell ```shell
docker run --rm \ docker run --rm -it -v "$(pwd):/dns" ghcr.io/stackexchange/dnscontrol preview
-it \
-v $(pwd)/dnsconfig.js:/dns/dnsconfig.js \
-v $(pwd)/creds.json:/dns/creds.json \
-v $(pwd)/spfcache.updated.json:/dns/spfcache.updated.json \
-v $(pwd)/spfcache.json:/dns/spfcache.json \
-v $(pwd)/zones/:/dns/zones/ \
-u $(id -u ${USER}):$(id -g ${USER}) \
stackexchange/dnscontrol \
preview
``` ```
### Binaries ### Binaries