Skip to content

endeveit/docker-jq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

docker-jq

Docker image for jq based on alpine linux image, just over 4MB in size.

This image also contains curl to make HTTP requests.

Usage

Test jq command:

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

Test a complex command:

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

Start an interactive container with jq:

$ docker run -it --rm --name jq endeveit/docker-jq

This will drop into /bin/sh, then jq command can be run:

# jq

About

Docker image for jq based on alpine linux image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published