Options for named startup docker
Christian Link
chris.link3000 at gmail.com
Mon Feb 1 15:28:50 UTC 2021
Hello everyone,
I am using the BIND Docker image in a Docker Compose setup. In this setup I
would like to disable ipv4 and start the named daemon with the option "-4".
Normally you can do this via the file /etc/default/named (In the options
variable). Unfortunately, this file is ignored. I also tried it with the
"Environment" parameter in docker-compose.yml, but this does not work
either.
What possibility do I have to give options to the named daemon without
redefining the start command completely (e.g. via "command")?
This is my docker-compose.yml
version: '3.8'
services:
bind:
image: internetsystemsconsortium/bind9:9.16
container_name: bind
volumes:
- ./etc/bind:/etc/bind
- ./etc/default/named:/etc/default/named
- ./var/cache/bind:/var/cache/bind
- ./var/lib/bind:/var/lib/bind
- ./var/log:/var/log
ports:
- 53:53/udp
- 53:53/tcp
- 127.0.0.1:953:953/tcp
restart: always
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20210201/00fc1a5e/attachment.htm>
More information about the bind-users
mailing list