Skip to content

Commit

Permalink
doc(readme): Add docker usage doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheepster committed Apr 30, 2024
1 parent 6ce6e7c commit 376cd2a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ Download the latest releases from the [GitHub release page](https://github.com/j

Pull the [jq image](https://github.com/jqlang/jq/pkgs/container/jq) to start quickly with Docker.


### Run with Docker
##### Example: Extracting the version from a `package.json` file
```bash
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
```

### Building from source

#### Dependencies
Expand Down

0 comments on commit 376cd2a

Please sign in to comment.