Files
smartdns/docs/install/docker.md
2023-12-01 21:00:43 +08:00

35 lines
600 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
hide:
- toc
---
# Docker
## 说明
SmartDNS提供了Docker镜像方便进行快速安装。
## 配置
创建配置文件/etc/smartdns/smartdns.conf添加如下必须的配置项目
```
bind [::]:53
server 8.8.8.8
server 1.1.1.1
```
## 启动镜像
```
docker run -d --name smartdns --restart=always -p 53:53/udp -v /etc/smartdns:/etc/smartdns pymumu/smartdns:latest
```
## 不重启镜像加载配置
对于docker容器smartdns支持不重启镜像加载配置当修改完成配置后进入容器环境执行下面的命令重新加载配置。
```
kill -HUP 1
```