https://github.com/eallion/docker-jq
https://github.com/eallion/docker-jq
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eallion/docker-jq
- Owner: eallion
- License: other
- Created: 2022-11-23T04:29:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-23T04:40:33.000Z (over 3 years ago)
- Last Synced: 2025-04-07T02:45:39.587Z (about 1 year ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker jq parse json
Docker Hub
> https://hub.docker.com/r/eallion/jq
### Uasge
```bash
docker run --rm -i eallion/jq echo '{"foo": "bar"}' | jq .
```
### Dockerfile
```dockerfile
FROM alpine:edge
RUN apk add curl jq && rm -f /var/cache/apk/*
```
### Build
```bash
docker build -t eallion/jq .
```
If you got a alpine cdn temporary error like this:
```bash
ERROR: https://dl-cdn.alpinelinux.org/alpine/edge/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/edge/main: No such file or directory
```
You need to resolve DNS:
```bash
sudo vim /etc/docker/daemon.json
```
Add:
```json
{
"dns": ["8.8.8.8"]
}
```