docker: add docker document.
This commit is contained in:
@@ -19,6 +19,7 @@ ddwrt|官方最新固件service页面->SmartDNS Resolver->启用。|选择界面
|
||||
debian|apt-get install smartdns|
|
||||
entware|ipkg update<br />ipkg install smartdns|软件源路径:<https://bin.entware.net/>
|
||||
MacOS|brew update<br />brew install smartdns|软件源路径(Rust 移植版):<https://github.com/mokeyish/smartdns-rs/releases/>
|
||||
docker|docker pull pymumu/smartdns | docker镜像:<https://hub.docker.com/r/pymumu/smartdns>
|
||||
|
||||
## 手工下载安装
|
||||
|
||||
|
||||
26
docs/install/docker.md
Normal file
26
docs/install/docker.md
Normal 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
|
||||
```
|
||||
Reference in New Issue
Block a user