
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://github.com/dockur/dnsmasq/ https://hub.docker.com/r/dockurr/dnsmasq/tags https://hub.docker.com/r/dockurr/dnsmasq/tags https://github.com/dockur/dnsmasq/pkgs/container/dnsmasq https://hub.docker.com/r/dockurr/dnsmasq
Docker container of https://thekelleys.org.uk/dnsmasq/doc.html, an open-source DNS server.
dnsmasq.conf configurationDocker Compose:
yamlservices: dnsmasq: image: dockurr/dnsmasq container_name: dnsmasq environment: DNS1: "1.0.0.1" DNS2: "1.1.1.1" ports: - 53:53/udp - 53:53/tcp cap_add: - NET_RAW - NET_ADMIN restart: always
Docker CLI:
bashdocker run -it --rm --name dnsmasq -p 53:53/udp -p 53:53/tcp -e "DNS1=1.0.0.1" -e "DNS2=1.1.1.1" --cap-add=NET_ADMIN docker.io/dockurr/dnsmasq
You can set the DNS1 and DNS2 environment variables to change which upstream DNS
servers to use.
For example, you can set them to the public https://www.cloudflare.com/learning/dns/what-is-1.1.1.1/ servers like this:
yamlenvironment: DNS1: "1.0.0.1" DNS2: "1.1.1.1"
You can extend the default configuration with a volume that mounts a
directory containing *.conf configuration files:
yamlvolumes: - ./dnsmasq.d/:/etc/dnsmasq.d/
You can also override https://github.com/dockur/dnsmasq/blob/master/dnsmasq.conf completely with a volume that binds your custom configuration file:
yamlvolumes: - ./dnsmasq.conf:/etc/dnsmasq.conf
If some process on the host is already binding to port 53, you may see an error similar
to the following:
Error response from daemon: driver failed programming external connectivity on endpoint dnsmasq (...): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use
You can inspect which process is binding to that port:
bash$ netstat -lnpt | grep -E ':53 +' tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 197/systemd-resolve
On hosts running systemd, such as in this example, you can workaround this by
specifying the IP addresses on which to bind port 53, for example:
yamlports: - "192.168.1.###:53:53/udp" - "192.168.1.###:53:53/tcp"
There are many other host-specific cases where some process and configuration binds
port 53. It may be an unused DNS daemon, such as bind that needs to be
uninstalled or disabled, or a number of other causes. So finding out which process is
binding the port is a good place to start debugging.
https://raw.githubusercontent.com/star-stats/stars/refs/heads/data/charts/dockur-dnsmasq.svg](https://github.com/dockur/dnsmasq/stargazers)
以下是 dockurr/dnsmasq 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务