Skip to content

Install

You can install the pre-compiled binary (in several ways), or compile from source.

Install using go install

You can install with go install with:

go install github.com/kyverno/chainsaw@latest

Manually

Download the pre-compiled binaries from the releases page and copy them to the desired location.

Install using Docker

Chainsaw is also available as a Docker image which you can pull and run:

docker pull ghcr.io/kyverno/chainsaw:<version>

Info

Since Chainsaw relies on files for its operation (like test definitions), you will need to bind mount the necessary directories when running it via Docker.

docker run --rm                         \
    -v /path/on/host:/path/in/container \
    ghcr.io/kyverno/chainsaw:<version>  \
    <chainsaw-command>

Compile from sources

clone:

git clone https://github.com/kyverno/chainsaw.git
build the binaries:

cd chainsaw
go mod tidy
make build

verify it works:

./chainsaw version