mirror of
https://github.com/11notes/docker-bind.git
synced 2025-11-09 08:06:39 +00:00
7f56611e603173f46103ed7a4dca6ec2fc3cdf5c
docker-bind
Dockerfile to create and run your own named process inside an alpine docker container.
Volumes
/bind/etc
Purpose: named config directory
/bind/var
Purpose: zone files directory
Run
docker run --name nginx \
-v volume-etc:/bind/etc \
-v volume-zones:/bind/var:ro \
-d 11notes/bind:latest
Docker -u 1000:1000 (no root initiative)
As part to make containers more secure, this container will not run as root, but as uid:gid 1000:1000.
Build with
- Alpine Linux - Alpine Linux
- bind/named - bind
Tips
- Permanent Storge with NFS/CIFS/... - Module to store permanent container data via NFS/CIFS/...
Languages
Shell
58.1%
Dockerfile
41.9%