Sign inSign up

luisnabais/bind9

By luisnabais

•Updated over 2 years ago
Archived

Bind9 on Alpine Linux

Image
0

502

luisnabais/bind9 repository overview

⁠luisnabais/bind9⁠

This code consists on the following:

  • Dockerfile, to build the image. Based on the official Alpine image.

⁠Supported Architectures

It should support most architectures, however, I just built it for arm64v8 and amd64.

⁠Usage

Here are some example snippets to help you get started creating a container.

---
version: '3'
services:
  bind9:
    image: luisnabais/bind9
    container_name: bind9
    hostname: bind9
    environment:
      - TZ=Europe/Lisbon
    volumes:
      - /data/docker/volumes/bind9_config/named.conf:/etc/bind/named.conf
      - /data/docker/volumes/bind9_config/db.home.conf:/etc/bind/zones/db.home.conf
      - /data/docker/volumes/bind9_config/db.vpn.conf:/etc/bind/zones/db.vpn.conf
    ports:
      - 53:53
      - 53:53/udp
    restart: unless-stopped
⁠docker cli (click here for more info⁠)
docker run -d \
  --name=bind9 \
  -e TZ=Europe/Lisbon \
  -p 53:53 \
  -p 53:53/udp \
  --restart unless-stopped \
  luisnabais/bind9

⁠Updating Info

Below are the instructions for updating containers:

⁠Via Docker Compose
  • Update all images: docker-compose pull
    • or update a single image: docker-compose pull bind9
  • Let compose update all containers as necessary: docker-compose up -d
    • or update a single container: docker-compose up -d bind9
⁠Via Docker Run
  • Update the image: docker pull luisnabais/bind9

  • Stop the running container: docker stop bind9

  • Delete the container: docker rm bind9

  • Recreate a new container with the same docker run parameters as instructed above.

  • You can also remove the old dangling images: docker image prune

⁠Building locally

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://gitlab.com/luisnabais/bind9.git
cd bind9
docker build \
  --no-cache \
  --pull \
  -t luisnabais/bind9 .

Tag summary

Content type

Image

Digest

sha256:ac89109eb…

Size

9.2 MB

Last updated

over 2 years ago

docker pull luisnabais/bind9