
如果你使用 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 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Free and open source, powerful network-wide ads & trackers blocking DNS server.
resolvedAdGuard Home is a network-wide software for blocking ads and tracking. After you set it up, it'll cover all your home devices, and you won't need any client-side software for that. Learn more on our https://github.com/AdguardTeam/AdGuardHome.
This command will pull the latest stable version:
shdocker pull adguard/adguardhome
The image exposes two volumes for data and configuration persistence. You
should create a data directory on a suitable volume on your host system,
e.g. /my/own/workdir, and a configuration directory on a suitable volume
on your host system, e.g. /my/own/confdir.
Use the following command to create a new container and run AdGuard Home:
shdocker run --name adguardhome\ --restart unless-stopped\ -v /my/own/workdir:/opt/adguardhome/work\ -v /my/own/confdir:/opt/adguardhome/conf\ -p 53:53/tcp -p 53:53/udp\ -p 67:67/udp -p 68:68/udp\ -p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp\ -p 853:853/tcp\ -p 784:784/udp -p 853:853/udp -p 8853:8853/udp\ -p 5443:5443/tcp -p 5443:5443/udp\ -d adguard/adguardhome
Now you can open the browser and navigate to [***] to control your AdGuard Home service.
Don't forget to use your own data and config directories!
Ports mappings you may need:
-p 53:53/tcp -p 53:53/udp: plain DNS.
-p 67:67/udp -p 68:68/tcp -p 68:68/udp: add if you intend to use AdGuard
Home as a DHCP server.
-p 80:80/tcp -p 443:443/tcp -p 443:443/udp -p 3000:3000/tcp: add if you
are going to use AdGuard Home's admin panel as well as run AdGuard Home as
an https://github.com/AdguardTeam/AdGuardHome/wiki/Encryption server.
-p 853:853/tcp: add if you are going to run AdGuard Home as
a https://github.com/AdguardTeam/AdGuardHome/wiki/Encryption server.
-p 784:784/udp -p 853:853/udp -p 8853:8853/udp: add if you are going to
run AdGuard Home as a https://github.com/AdguardTeam/AdGuardHome/wiki/Encryption server. You may only leave one
or two of these.
-p 5443:5443/tcp -p 5443:5443/udp: add if you are going to run AdGuard
Home as a https://github.com/AdguardTeam/AdGuardHome/wiki/DNSCrypt server.
Start: docker start adguardhome
Stop: docker stop adguardhome
Remove: docker rm adguardhome
Pull the new version from Docker Hub:
shdocker pull adguard/adguardhome
Stop and remove currently running container (assuming the container is named
adguardhome):
shdocker stop adguardhome docker rm adguardhome
Create and start the container using the new image using the command from the previous section.
If you want to be on the bleeding edge, you might want to run the image from the
edge or beta tags. In order to use it, simply replace adguard/adguardhome
with adguard/adguardhome:edge or adguard/adguardhome:beta in every command
from the quick start. For example:
shdocker pull adguard/adguardhome:edge
Upon the first run, a file named AdGuardHome.yaml will be created, with
default values written into it. You can modify the file while your AdGuard Home
container is not running. Otherwise, any changes to the file will be lost
because the running program will overwrite them.
Settings are stored in YAML, possible parameters that you can configure are listed on https://github.com/AdguardTeam/Adguardhome/wiki/Configuration.
If you want to use AdGuardHome's DHCP server, you should pass --network host
argument when creating the container:
shdocker run --name adguardhome --network host ...
This option instructs Docker to use the host's network rather than
a docker-bridged network. Note that port mapping with -p is not necessary in
this case.
A note from the Docker documentation:
The host networking driver only works on Linux hosts, and is not supported on Docker Desktop for Mac, Docker Desktop for Windows, or Docker EE for Windows Server.
resolvedIf you try to run AdGuardHome on a system where the resolved daemon is
started, docker will fail to bind on port 53, because resolved daemon is
listening on 127.0.0.53:53. Here's how you can disable DNSStubListener on
your machine:
Deactivate DNSStubListener and update the DNS server address. Create
a new file, /etc/systemd/resolved.conf.d/adguardhome.conf (creating
the /etc/systemd/resolved.conf.d directory if needed) and add the
following content to it:
none[Resolve] DNS=127.0.0.1 DNSStubListener=no
Specifying 127.0.0.1 as the DNS server address is necessary because
otherwise the nameserver will be 127.0.0.53 which doesn't work without
DNSStubListener.
Activate a new resolv.conf file:
shmv /etc/resolv.conf /etc/resolv.conf.backup ln -s /run/systemd/resolve/resolv.conf /etc/resolv.conf
Stop DNSStubListener:
shsystemctl reload-or-restart systemd-resolved
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务