Skip to content

Commit

Permalink
docs: update version 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
soulteary committed May 7, 2023
1 parent 8b4c855 commit 8d01de1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ If you use docker, you can use the following command ([DockerHub](https://hub.do

```bash
docker pull soulteary/nginx-formatter:latest
docker pull soulteary/nginx-formatter:v1.1.0
docker pull soulteary/nginx-formatter:v1.1.1
```

## Usage
Expand Down Expand Up @@ -74,13 +74,13 @@ specified the port:
There is no difference between using parameters in Docker and the above, for example, we start a Web UI formatting tool service in Docker:

```bash
docker run --rm -it -p 8080:8080 soulteary/nginx-formatter:v1.1.0 -web
docker run --rm -it -p 8080:8080 soulteary/nginx-formatter:v1.1.1 -web
```

If you want to format the configuration of the current directory, you can use the program in Docker with a command similar to the following:

```bash
docker run --rm -it -v `pwd`:/app soulteary/nginx-formatter:v1.1.0 -input=/app
docker run --rm -it -v `pwd`:/app soulteary/nginx-formatter:v1.1.1 -input=/app
```

## Full parameters supported
Expand Down
6 changes: 3 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

```bash
docker pull soulteary/nginx-formatter:latest
docker pull soulteary/nginx-formatter:v1.1.0
docker pull soulteary/nginx-formatter:v1.1.1
```

## 程序使用
Expand Down Expand Up @@ -74,14 +74,14 @@ docker pull soulteary/nginx-formatter:v1.1.0
在 Docker 中使用和上面没有什么区别,比如我们启动一个在 Docker 中的 Web UI 格式化工具服务:

```bash
docker run --rm -it -p 8080:8080 soulteary/nginx-formatter:v1.1.0 -web
docker run --rm -it -p 8080:8080 soulteary/nginx-formatter:v1.1.1 -web
```


如果你希望格式化当前目录的配置,可以通过类似下面的命令,来使用 Docker 中的程序:

```bash
docker run --rm -it -v `pwd`:/app soulteary/nginx-formatter:v1.1.0 -input=/app
docker run --rm -it -v `pwd`:/app soulteary/nginx-formatter:v1.1.1 -input=/app
```


Expand Down

0 comments on commit 8d01de1

Please sign in to comment.