Skip to content

Commit f6f81df

Browse files
authored
doc: cache preserving and colored output on docker runs (#3377)
1 parent d0b2463 commit f6f81df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/src/docs/usage/install/index.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ sudo port install golangci-lint
7575
docker run --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
7676
```
7777

78+
Preserving cache between consecutive runs:
79+
```sh
80+
docker run --rm -v $(pwd):/app -v ~/.cache/golangci-lint/{.LatestVersion}:/root/.cache -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
81+
```
82+
83+
Colored output:
84+
```sh
85+
docker run -t --rm -v $(pwd):/app -w /app golangci/golangci-lint:{.LatestVersion} golangci-lint run -v
86+
```
87+
7888
### Linux and Windows
7989

8090
```sh

0 commit comments

Comments
 (0)