add dnsmasq

This commit is contained in:
Newnius 2019-12-31 16:13:07 +08:00
parent 24c1a70448
commit e79e626ab7
2 changed files with 25 additions and 0 deletions

7
dnsmasq/Dockerfile Normal file
View File

@ -0,0 +1,7 @@
FROM alpine:3.10
MAINTAINER Newnius <newnius.cn@gmail.com>
RUN apk add --no-cache dnsmasq
CMD ["/usr/sbin/dnsmasq", "-k"]

18
dnsmasq/README.md Normal file
View File

@ -0,0 +1,18 @@
# Deploy dnsmasq in docker
## Deploy
#### Run as Server
```bash
docker run \
--name dnsmasq \
-d \
--restart always \
--cap-add=NET_ADMIN \
--publish 53:53/udp \
--mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \
--mount type=bind,src=/data/dnsmasq/,dst=/etc/dnsmasq.d/ \
newnius/dnsmasq
```