Sign in

yq

4.4.5-ls9tool

A tool: you run it once as a command, or the project's tooling or other images use it. It is not a long-running application and is not in the stores.

docker pull ghcr.io/linuxserver-playground/yq:latest

Usage#

Docker cli

docker run --rm \
  -v "$PWD:$PWD" \
  -w="$PWD" \
  --entrypoint yq \
  linuxserver/yq \
  .foo.bar input.yml

You can replace the last line with any yq command and argument, which will be passed to yq inside the image.

docker run --rm \
  -v "$PWD:$PWD" \
  -w="$PWD" \
  --entrypoint jq \
  linuxserver/yq \
  .foo.bar input.json

You can replace the last line with any jq command and argument, which will be passed to jq inside the image.

docker run --rm \
  -v "$PWD:$PWD" \
  -w="$PWD" \
  --entrypoint xq \
  linuxserver/yq \
  .foo.bar input.xml

You can replace the last line with any xq command and argument, which will be passed to xq inside the image.

We provide a very convenient script that allows the yq container to run as if it was installed natively:

sudo curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-yq/master/run-yq.sh -o /usr/local/bin/yq
sudo chmod +x /usr/local/bin/yq

Running these two commands on your docker host once will let you issue commands such as yq .foo.bar input.yml and the yq container will do its job behind the scenes.

sudo curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-yq/master/run-jq.sh -o /usr/local/bin/jq
sudo chmod +x /usr/local/bin/jq

Running these two commands on your docker host once will let you issue commands such as jq .foo.bar input.json and the jq container will do its job behind the scenes.

sudo curl -L --fail https://raw.githubusercontent.com/linuxserver/docker-yq/master/run-xq.sh -o /usr/local/bin/xq
sudo chmod +x /usr/local/bin/xq

Running these two commands on your docker host once will let you issue commands such as xq .foo.bar input.xml and the xq container will do its job behind the scenes.

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch master · stable4.4.5-ls9amd64 · arm64–

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/yq:4.4.5-ls9

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-alpine:3.22
Upstream version
4.4.5
amd64 compressed
31.0 MB · 8 layers
arm64 compressed
32.0 MB · 8 layers
amd64 packages
98 · Alpine Linux v3.22
arm64 packages
98 · Alpine Linux v3.22
Tests
not run
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

yq on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
master → :latestsuccess
4.4.5
? unknown––

Parameters#

Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired

Updating Info#

Via Docker Cli

  • Update the image: docker pull linuxserver/yq
  • You can also remove the old dangling images: docker image prune

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver/docker-yq.git
cd docker-yq
docker build \
  --no-cache \
  --pull \
  -t linuxserver/yq:latest .

The ARM variants can be built on x86_64 hardware and vice versa using lscr.io/linuxserver/qemu-static

docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Builds#

The newest five builds per branch, each with its CI report; 4 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
4.4.5-ls9master · 8536a3d1weekly package checkpackagessuccess31.0 MB amd6432.0 MB arm64
4.4.5-ls8master · dc4b9127weekly package checkbasesuccess31.0 MB amd6432.0 MB arm64
4.4.5-ls7master · b1ab9f6dweekly package checkpackagessuccess31.0 MB amd6431.9 MB arm64
4.4.5-ls6master · 11e86c57weekly package checkbasesuccess31.0 MB amd6431.9 MB arm64
4.4.5-ls5master · bc32c8e4weekly package checkbasesuccess31.0 MB amd6431.9 MB arm64
Older releases4Release, run record and run on GitHub

Support#

Questions about running yq? Start with the documentation and the community; open an issue for bugs.

  • image version number
    • docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/yq

Community project

Improve yq

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the yq image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the yq image, test it and draft the PR.

Contributing an image Every way to help Get the harness (opens in a new tab)