docker_bind/docker.named.service

16 lines
464 B
SYSTEMD
Raw Normal View History

2023-02-26 00:30:43 +00:00
[Unit]
Description=BIND9 Container
After=docker.service
Requires=docker.service
[Service]
TimeoutStartSec=0
Restart=always
ExecStartPre=-/usr/bin/docker stop bind9
ExecStartPre=-/usr/bin/docker rm bind9
# note: this container is actually provding DNS service, so when that is missing, the pull fails.
# ExecStartPre=/usr/bin/docker pull docker.io/internetsystemsconsortium/bind9:9.18
2023-02-26 00:30:43 +00:00
ExecStart=/etc/bind/run_bind_container.sh
[Install]
WantedBy=multi-user.target