mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 14:56:20 +08:00
DOCS: Improved docker instructions (#2532)
This commit is contained in:
parent
d4f6e01e7a
commit
c2eb98993c
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue