diff --git a/_docs/readme_zh-cn.md b/_docs/readme_zh-cn.md index b6783e0..a57d0f1 100644 --- a/_docs/readme_zh-cn.md +++ b/_docs/readme_zh-cn.md @@ -50,13 +50,25 @@ $ go install github.com/xvzc/SpoofDPI/cmd/spoof-dpi@latest ``` ## Git -You can also build your own +你可以从源码构建可执行文件 ```bash $ git clone https://github.com/xvzc/SpoofDPI.git $ cd SpoofDPI $ go build ./cmd/... ``` +## Docker +你可以从Dockerfile构建你的docker image +```shell +docker build ./ -t spoof-dpi:latest +``` +使用`docker run -it -p 8080:8080 --name spoof-dpi spoof-dpi:latest`运行容器 +> 如果你希望在运行容器服务的时候传递参数(比如--enable-doh --timeout=2000), 你可以使用以下命令格式 +```shell +docker run -it -p 8080:8080 spoof-dpi:latest --enable-doh +``` +- 想要了解更多的参数, 请检查Usage部分内容 + # 使用方法 ``` diff --git a/readme.md b/readme.md index 304be4c..548893a 100644 --- a/readme.md +++ b/readme.md @@ -54,12 +54,17 @@ $ cd SpoofDPI $ go build ./cmd/... ``` -## docker +## Docker You can use Dockerfile to build a docker image ```shell docker build ./ -t spoof-dpi:latest ``` Use `docker run -it -p 8080:8080 --name spoof-dpi spoof-dpi:latest` to run container +> If you want to passes options(like --enable-doh --timeout=2000) through the docker, you can run command like below +```shell +docker run -it -p 8080:8080 spoof-dpi:latest --enable-doh +``` +- check the Usage for more options # Usage ```