From e79e626ab759f04e92d7bc30fe2b3b2fcedbe841 Mon Sep 17 00:00:00 2001 From: Newnius Date: Tue, 31 Dec 2019 16:13:07 +0800 Subject: [PATCH] add dnsmasq --- dnsmasq/Dockerfile | 7 +++++++ dnsmasq/README.md | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 dnsmasq/Dockerfile create mode 100644 dnsmasq/README.md diff --git a/dnsmasq/Dockerfile b/dnsmasq/Dockerfile new file mode 100644 index 0000000..a0cd54c --- /dev/null +++ b/dnsmasq/Dockerfile @@ -0,0 +1,7 @@ +FROM alpine:3.10 + +MAINTAINER Newnius + +RUN apk add --no-cache dnsmasq + +CMD ["/usr/sbin/dnsmasq", "-k"] diff --git a/dnsmasq/README.md b/dnsmasq/README.md new file mode 100644 index 0000000..5b809ec --- /dev/null +++ b/dnsmasq/README.md @@ -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 +``` +