Docker bind server generic image source. This is based on debian
image.
You can pull
a ready to use image from Docker
index running:
$ docker pull quay.cmer.fr/repository/cmer/slave-dns
Or build this repository:
$ git clone https://git.cmer.fr/cmer/slave-dns.git
$ cd slave-dns/
$ docker build -t slave-dns .
This image uses volumes and environment variables to control the bind server configuration.
Environement:
$ docker.io run --name bind -p <ip-address>:53:53 -p <ip-address>:53:53/udp <ip-address>:953:953 -d \
-e DNS_IP_MASTER=<your_Odin_IP> -e RNDC_KEY=<your_rndc_key> \
-v /etc/localtime:/etc/localtime:ro \
-t quay.cmer.fr/repository/cmer/slave-dns:latest
DNS_IP_MASTER
: ip your odin master serverRNDC_KEY
: Your key rndc
Shell access:
$ docker.io run -p <ip-address>:53:53 -p <ip-address>:53:53/udp -p <ip-address>:953:953 -i \
-v `pwd`/volumes/etc:/etc/bind -v /etc/localtime:/etc/localtime:ro \
-t quay.cmer.fr/repository/cmer/slave-dns /bin/bash
The command above will start a container give you a shell. Don't
forget to start the service running the dns-start
script.
The command above will start a container and return its ID.