mirror of
https://github.com/11notes/docker-bind.git
synced 2025-11-09 00:02:11 +00:00
update to alpine 3.10
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# :: Header
|
# :: Header
|
||||||
FROM alpine:3.9
|
FROM alpine:3.10
|
||||||
|
|
||||||
# :: Run
|
# :: Run
|
||||||
RUN mkdir -p /bind/etc \
|
RUN mkdir -p /bind/etc \
|
||||||
@@ -15,6 +15,9 @@ ADD ./source/zones.conf /bind/etc/zones.conf
|
|||||||
|
|
||||||
RUN chown -R named:named /bind
|
RUN chown -R named:named /bind
|
||||||
|
|
||||||
|
# :: Version
|
||||||
|
RUN echo "CI/CD{{$(named -v 2>&1)}}"
|
||||||
|
|
||||||
# :: docker -u 1000:1000 (no root initiative)
|
# :: docker -u 1000:1000 (no root initiative)
|
||||||
RUN usermod -u 1000 named \
|
RUN usermod -u 1000 named \
|
||||||
&& groupmod -g 1000 named \
|
&& groupmod -g 1000 named \
|
||||||
|
|||||||
@@ -8,15 +8,15 @@ Dockerfile to create and run your own named process inside an alpine docker cont
|
|||||||
|
|
||||||
Purpose: named config directory
|
Purpose: named config directory
|
||||||
|
|
||||||
/var/zones
|
/bind/var
|
||||||
|
|
||||||
Purpose: zone files directory
|
Purpose: zone files directory
|
||||||
|
|
||||||
## Run
|
## Run
|
||||||
```shell
|
```shell
|
||||||
docker run --name nginx \
|
docker run --name nginx \
|
||||||
-v volume-etc:/etc/bind \
|
-v volume-etc:/bind/etc \
|
||||||
-v volume-zones:/var/zones:ro \
|
-v volume-zones:/bind/var:ro \
|
||||||
-d 11notes/bind:latest
|
-d 11notes/bind:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user