mirror of
https://github.com/xvzc/SpoofDPI.git
synced 2024-12-22 14:26:31 +00:00
fix: capitalize the title; feat: add options usage for docker and change chinese readme.md
This commit is contained in:
parent
e53927850d
commit
f5db23fc21
@ -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部分内容
|
||||
|
||||
# 使用方法
|
||||
|
||||
```
|
||||
|
@ -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
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user