> For AI agents: the complete documentation index is available at https://www.tteam.icu/llms.txt, the full documentation bundle is available at https://www.tteam.icu/llms-full.txt.

# Adguard-Home去广告

AdGuard Home 可以作为私有 DNS 服务使用，通过规则过滤广告、追踪域名和部分恶意域名，适合部署在家庭网关或内网服务器上。

## 快速启动

```sh file="./adguardhome/setup.sh" title="setup.sh"
#!/bin/bash

docker rm -f adguardhome

docker run -id \
--name adguardhome \
--restart unless-stopped \
--network host \
-v ./workdir:/opt/adguardhome/work \
-v ./confdir:/opt/adguardhome/conf \
-d adguard/adguardhome
```

:::tip
如果遇到 `53` 端口被 `systemd-resolved` 占用，可以先停止并禁用它：

`systemctl disable systemd-resolved --now`
:::
