Skip to content

Commit

Permalink
doc: more specific example for docker run usecase
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bauer <[email protected]>
  • Loading branch information
fsrv-xyz committed Dec 23, 2024
1 parent fc1bac3 commit dd9863e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ yaml lint:
- yamlfmt .
- git diff --exit-code
```
The Docker image can also be used to run yamlfmt without installing it on your system.
The Docker image can also be used to run yamlfmt without installing it on your system. Just mount the directory you want to format as a volume (`/project` is used by default):
```bash
docker run -v "$(pwd):/project" ghcr.io/google/yamlfmt:latest .
docker run -v "$(pwd):/project" ghcr.io/google/yamlfmt:latest <yamlfmt args>
```

# Configuration File
Expand Down

0 comments on commit dd9863e

Please sign in to comment.