1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

doc(readme): Fix docker run with mounted volume command (#3105)

Co-authored-by: Sheepster <sheepstert>
This commit is contained in:
sheepster
2024-05-01 18:56:48 +03:00
committed by GitHub
parent 9afc450930
commit ed8f7154f4

View File

@ -25,7 +25,7 @@ docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
```
##### Example: Extracting the version from a `package.json` file with a mounted volume
```bash
docker run --rm -i -v "${PWD}":/pwd -w /pwd ghcr.io/jqlang/jq:latest '.version' package.json
docker run --rm -i -v "$PWD:$PWD" -w "$PWD" ghcr.io/jqlang/jq:latest '.version' package.json
```
### Building from source