Public | Automated Build

Last pushed: 2 years ago
Short Description
centos:latest and bind
Full Description

Quickstart

Clone this repo:

git clone git@github.com:OldCrowEW/docker-centos-bind.git

Build docker image:

docker build -t oldcrowew/docker-centos-bind .

or

Docker pull command:

docker pull oldcrowew/docker-centos-bind

Start BIND using:

docker run --name bind -d --restart=always \
  --publish 53:53/udp \
  --volume /srv/docker/bind:/data \
  oldcrowew/docker-centos-bind:latest

Persistence

For the BIND to preserve its state across container shutdown and startup you should mount a volume at /data.

The Quickstart command already mounts a volume for persistence.

SELinux users should update the security context of the host mountpoint so that it plays nicely with Docker:

mkdir -p /srv/docker/bind
chcon -Rt svirt_sandbox_file_t /srv/docker/bind

Maintenance

Upgrading

To upgrade to newer releases:

  1. Download the updated Docker image:

    docker pull oldcrowew/docker-centos-bind:latest
    
  2. Stop the currently running image:

    docker stop bind
    
  3. Remove the stopped container

    docker rm -v bind
    
  4. Start the updated image

    docker run -name bind -d \
    [OPTIONS] \
    oldcrowew/docker-centos-bind:latest
    

Shell Access

For debugging and maintenance purposes you may want access the containers shell. You can access a running containers shell by starting bash using docker exec:

docker exec -it bind bash
Docker Pull Command
Owner
oldcrowew
Source Repository

Comments (0)