opsxcq / docker-dnsmasq Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
I've got the following foler:
$ lh
total 8.0K
drwxr-xr-x 2 root root 4.0K Aug 9 11:34 dnsmasq.conf
-rw-rw-r-- 1 parsa parsa 223 Aug 9 11:19 docker-compose.yml
Got the following on the docker-compose.yml
:
version: '2'
services:
dns:
restart: always
image: strm/dnsmasq
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.conf
ports:
- "53:53/udp"
cap_add:
- NET_ADMIN
container_name: dnsmasq
Which is exactly as what is mentioned by the readme.md
.
But I get following on running the container:
Starting dnsmasq ... error
ERROR: for dnsmasq Cannot start service dns: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/parsa/docker-compose-files/dnsmasq/dnsmasq.conf" to rootfs at "/etc/dnsmasq.conf": mount /home/parsa/docker-compose-files/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: for dns Cannot start service dns: failed to create shim: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/parsa/docker-compose-files/dnsmasq/dnsmasq.conf" to rootfs at "/etc/dnsmasq.conf": mount /home/parsa/docker-compose-files/dnsmasq/dnsmasq.conf:/etc/dnsmasq.conf (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
ERROR: Encountered errors while bringing up the project.
What's wrong?
Hello! Thank you for this docker image ๐. I haven't been able to get logging to work, except if I use the -d
flag, which I don't want to use in production. The -q
flag should log all queries, but I only see logs with the -d
flag. Any idea? I'm running the container with:
docker run -it -p 53:53/udp -p 53:53/tcp -v $(pwd)/dnsmasq.conf:/etc/dnsmasq.conf --cap-add=NET_ADMIN strm/dnsmasq -q
With very simple dnsmasq.conf
:
address=/router/10.1.1.1
When I run the container and dig router
I get a record for 10.1.1.1 in return, so the container is running fine but I'm just not seeing logs. Thanks for the help!
Hi, I was wondering if you know an approach of using your image in order to make it work with windows, on macOS it works perfectly but as you know it requires a resolver setup and that is not quite easy to achieve in windows.
I'm trying to setup a DNS for local dev that works in macOS and Windows. I need *.example.com to resolve to localhost for local development.
Any help or tip to know in what direction should I take?
I am using a hosts file in dnsmasq and need to reload dnsmasq to apply changes. When I send SIGHUP to dnsmasq, the container restarts.
Is this because dnsmasq tries to restart itself? Can we do anything to do a reload without restarting the container?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.