This image is the skydns base. It comes from [alpine-base][alpine-base].
docker build -t rawmind/alpine-skydns:<version> .
2.5.3-8
(Dockerfile)
This image runs skydns with monit. skydns is started with user and group "skydns".
Besides, you can customize the configuration in several ways:
Etcd is installed with the default configuration and some parameters can be overrided with env variables:
- ETCD_MACHINES=${ETCD_MACHINES:-"http://etcd:2379"} # Multiple values separated by ,
- SKYDNS_ADDR=${SKYDNS_ADDR:-"0.0.0.0:53"} # Address to bind
- SKYDNS_DOMAIN=${SKYDNS_DOMAIN:-"dev.local"} # Skydns authorizative domain
- SKYDNS_PATH_PREFIX=${SKYDNS_PATH_PREFIX:-"skydns"} # skydns etcd prefix
- SKYDNS_NDOTS=${SKYDNS_NDOTS:-"1"} # Minimum dot at name to forward query
- SKYDNS_NO_REC=${SKYDNS_NO_REC:-"true"} # Enables or disables recursion
- SKYDNS_NAMESERVERS=${SKYDNS_NAMESERVERS:-""} # Dns forwarders
Etcd is installed under /opt/skydns and make use of /opt/skydns/bin/skydns-source.sh to source env variables.
You can edit this files in order customize configuration
You could also include FROM rawmind/alpine-skydns at the top of your Dockerfile, and add your custom config.
If you are running it in rancher, you could run rancher-skydns as a sidekick to get dynamic configuration.
See rancher-example, that run kafka in a rancher system with dynamic configuration.