Skip to content

Install ContainerHive

ContainerHive supports a variety of platforms.

Homebrew

brew tap ContainerHive/ContainerHive
brew install ContainerHive

0install

Installation and updates run through a signed 0install feed.

0install add ch https://0install.container-hive.eu/containerhive.xml
0install run ch

On the first run, 0install asks once to trust the release key. After that, 0install run ch starts the newest release.

Containerized

If you prefer to use containerized workflows, use the provided OCI image.

docker run --rm -it -v $PWD:/workspace containerhive/containerhive

Manual

Pick your platform (linux-amd64, linux-arm64, darwin-amd64 or darwin-arm64) and run:

PLATFORM=linux-amd64  # or linux-arm64, darwin-amd64, darwin-arm64
VERSION=$(curl -Lso /dev/null -w %{url_effective} https://github.com/ContainerHive/ContainerHive/releases/latest | grep -o '[^/]*$')
curl -LO "https://github.com/ContainerHive/ContainerHive/releases/download/${VERSION}/${PLATFORM}.tar.zst" && \
tar --zstd -xf "${PLATFORM}.tar.zst" ch && \
chmod +x ch && \
sudo mv ch /usr/local/bin/ch

Next steps

Continue with Get started. To run ContainerHive from pre-commit, see the pre-commit guide.

Where to find the latest release

Binaries

Binaries for all platforms can be found on the latest release page.

Docker

The Docker image is published to Docker Hub and mirrored to ghcr.io/containerhive/containerhive and registry.gitlab.com/containerhive/containerhive.