Docker Compose Setup with ISC/Bind9 Image

Johannes Kastl mail at ojkastl.de
Sun Dec 29 13:11:39 UTC 2024


Hi Pablo,

On 27.12.24 21:17 Pablo wrote:

> This is my docker-compose.yml (my start command has to be sudoed for 
> some reason, Debian 12 machine: sudo docker compose up -d):

Guess: Your user is not part of the docker group?

Side note: I avoid docker and use (rootless) podman instead, which can
be used as a backend for docker compose.

> services:
> bind9:
> image: internetsystemsconsortium/bind9:9.20

For some reason the official container image logs to a file instead of
stdout. It logs to /var/log/bind/default.log by default.

You have mounted the log directory to /var/log/named instead:

> volumes:
>        - ./config:/etc/bind
>        - ./cache:/var/cache/bind
>        - ./zones:/var/lib/bind
>        - ./log:/var/log/named

Try changing that to /var/log/bind/. Then you should be able to check
the log file for errors.

Did you check the docker compose logs for your bind9 service?

Kind Regards,
Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20241229/37f8fca2/attachment.sig>


More information about the bind-users mailing list