
如果你用 DeepSeek、元宝AI、Copilot 等 AI 代为编写轩辕镜像的 docker pull、修改 compose 镜像地址,或排查拉取失败等问题,请让 AI 先读规则再动手,只要在 AI 对话里直接发送下面这句话即可:
生成 docker pull、修改 compose 的 image,或排查拉取失败前,请先阅读并严格遵守 https://xuanyuan.cloud/agents.md 中的规则。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Dnsmasq docker image for popular resolvers. Select prefered upstream DNS resolver without additional configuration.
$ docker build -t dnsmasq .
While creating the container, pass the prefered upstream DNS resolver as additional argument. Currently supported upstream DNS are :
$ docker run -dit -p 53:53/tcp -p 53:53/udp --cap-add=NET_ADMIN --name my-resolver cloudcontainer/dnsmasq <google | opendns | cloudflare | quad9>
Note: If upstream is not specified, then container uses the IPs in the target host's /etc/resolv.conf file as upstream servers.
Example
$ docker run -dit --cap-add=NET_ADMIN --name my-resolver dnsmasq google
my-resolver is the name of Docker container created with above example.my-resolver container. This image name was used the above Docker build section.my-resolver container.The container will listen on all available network interface.
Once the container is running, update the /etc/resolv.conf file with the IP of the base host where my-resolver container is running (or just 127.0.0.1 if requierd only on localhost).
Daemon and query logs are enabled. docker logs my-resolver command will display dnsmasq's logs.
Example
$ sudo docker run -dit -p 53:53/tcp -p 53:53/udp --name my-resolver cloudcontainer/dnsmasq opendns c581acc5807788f21423e565e8e6160da126d2155ea4ca8477490eea961773e6 $ dig +short @127.0.0.1 hub.docker.com # Query on loop-back address elb-default.us-east-1.aws.dckr.io. us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com. 3.220.14.115 52.72.152.117 52.72.182.154 $ dig +short @192.168.122.20 docker.com # Query on host's IP address 52.72.182.154 3.220.14.115 52.72.152.117 $ sudo docker logs my-resolver # Will display the logs of above dig commands dnsmasq[6]: started, version 2.81 cachesize 150 dnsmasq[6]: compile time options: IPv6 GNU-getopt no-DBus no-UBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth no-DNSSEC loop-detect inotify dumpfile dnsmasq[6]: reading /opt/dnsmasq/opendns-resolver dnsmasq[6]: using nameserver 208.67.222.222#53 dnsmasq[6]: using nameserver 208.67.220.220#53 dnsmasq[6]: read /etc/hosts - 7 addresses dnsmasq[6]: query[A] hub.docker.com from 172.17.0.1 dnsmasq[6]: forwarded hub.docker.com to 208.67.222.222 dnsmasq[6]: forwarded hub.docker.com to 208.67.220.220 dnsmasq[6]: reply hub.docker.com is <CNAME> dnsmasq[6]: reply elb-default.us-east-1.aws.dckr.io is <CNAME> dnsmasq[6]: reply us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com is 3.220.14.115 dnsmasq[6]: reply us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com is 52.72.152.117 dnsmasq[6]: reply us-east-1-elbdefau-1nlhaqqbnj2z8-140214243.us-east-1.elb.amazonaws.com is 52.72.182.154 dnsmasq[6]: query[A] docker.com from 192.168.122.20 dnsmasq[6]: forwarded docker.com to 208.67.222.222 dnsmasq[6]: forwarded docker.com to 208.67.220.220 dnsmasq[6]: reply docker.com is 52.72.182.154 dnsmasq[6]: reply docker.com is 3.220.14.115 dnsmasq[6]: reply docker.com is 52.72.152.117
以下是 cloudcontainer/dnsmasq 相关的常用 Docker 镜像,适用于 不同场景 等不同场景:
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。



探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
发给 Cursor、ChatGPT、豆包等 AI 的说明文档
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
docker search 限制
站内搜不到镜像
离线 save/load
插件要用 plugin install
WSL 拉取慢
安全与 digest
新手拉取配置
镜像合规机制
不支持 push
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
域名连通性排查
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务