docker: add docker document.

This commit is contained in:
Nick Peng
2023-11-01 21:24:02 +08:00
parent 4d69057696
commit e5e5c990c0
7 changed files with 77 additions and 0 deletions

26
docs/install/docker.md Normal file
View File

@@ -0,0 +1,26 @@
---
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
```