We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf23e0d commit 4a962c9Copy full SHA for 4a962c9
README.md
@@ -17,6 +17,17 @@ Download the latest releases from the [GitHub release page](https://github.com/j
17
18
Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start quickly with Docker.
19
20
+
21
+#### Run with Docker
22
+##### Example: Extracting the version from a `package.json` file
23
+```bash
24
+docker run --rm -i ghcr.io/jqlang/jq:latest < package.json '.version'
25
+```
26
+##### Example: Extracting the version from a `package.json` file with a mounted volume
27
28
+docker run --rm -i -v "${PWD}":/pwd -w /pwd ghcr.io/jqlang/jq:latest '.version' package.json
29
30
31
### Building from source
32
33
#### Dependencies
0 commit comments