Sign inSign up

matheusmmo/docker-jq

By matheusmmo

•Updated over 8 years ago

Simple Alpine docker image with jq installed

Image
0

10K+

matheusmmo/docker-jq repository overview

⁠Docker JQ

Simple Alpine docker image with JQ installed

⁠Usage

$ docker run --rm matheusmmo/docker-jq sh -c 'echo "{\"foo\":\"bar\"}" | jq .'

⁠Passing data to container

In some cases, you may want to pass data from your host machine to the docker-jq machine. Do this by setting up a enviroment variable, like so:

$ json='{"foo":"bar"}'
$ docker run --rm -e JSON="$json" matheusmmo/docker-jq sh -c 'echo $JSON | jq .'

Tag summary

Content type

Image

Digest

Size

2.4 MB

Last updated

over 8 years ago

docker pull matheusmmo/docker-jq