docker_bind/docker.named.service

15 lines
364 B
Desktop File

[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
ExecStartPre=/usr/bin/docker pull docker.io/internetsystemsconsortium/bind9:9.18
ExecStart=/etc/bind/run_bind_container.sh
[Install]
WantedBy=multi-user.target