mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 08:31:55 +00:00
add dnsmasq
This commit is contained in:
parent
24c1a70448
commit
e79e626ab7
7
dnsmasq/Dockerfile
Normal file
7
dnsmasq/Dockerfile
Normal 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
18
dnsmasq/README.md
Normal 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
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user