This page provides instructions to quickly deploy Sarus using a standalone archive containing statically-linked binaries for the engine, the hooks and some dependency software.

The content in this page is intended for those interested in installing and using Sarus without building the software beforehand. If you want to build Sarus from source or through the Spack package manager, please refer to the Custom installation section.

Install Sarus

You can install Sarus by following the steps below.

  1. Download the latest standalone Sarus archive from the official GitHub Releases:

    mkdir /opt/sarus
    cd /opt/sarus
    # Adjust url to your preferred version
    wget https://github.com/eth-cscs/sarus/releases/download/1.5.0/sarus-Release.tar.gz
  2. Extract Sarus in the installation directory:

    cd /opt/sarus
    tar xf sarus-Release.tar.gz
  3. Run the configuration script to finalize the installation of Sarus:

    cd /opt/sarus/1.5.0-Release  # adapt folder name to actual version of Sarus
    sudo ./configure_installation.sh


    The configuration script needs to run with root privileges in order to set Sarus as a root-owned SUID program.

    The configuration script requires the program mksquashfs to be installed on the system, which is typically available through the squashfs-tools package.

    As explained by the output of the script, you need to persistently add Sarus to your PATH; one option is to add a line like export PATH=/opt/sarus/bin:${PATH} to your .bashrc file.

    Also note that the configuration script will create a minimal working configuration. For enabling additional features, please refer to the Configuration file reference.

  4. Perform the Post-installation actions.


The Skopeo static binary included in the Sarus standalone archive is intended for test and evaluation purposes only!

Static builds of Skopeo are not supported by Skopeo maintainers, and are unsuitable for production deployments.

For production uses, it is recommended to configure Sarus to use a dedicated, dynamically-linked Skopeo binary (either installed through the package manager or built from source).

Use Sarus

Now Sarus is ready to be used. Below is a list of the available commands:

help: Print help message about a command
images: List images
load: Load the contents of a tarball to create a filesystem image
pull: Pull an image from a registry
rmi: Remove an image
run: Run a command in a new container
ssh-keygen: Generate the SSH keys in the local repository
version: Show the Sarus version information

Below is an example of some basic usage of Sarus:

$ sarus pull alpine
# image            : docker.io/library/alpine:latest
# cache directory  : "/home/user/.sarus/cache"
# temp directory   : "/tmp"
# images directory : "/home/user/.sarus/images"
# image digest     : sha256:4ff3ca91275773af45cb4b0834e12b7eb47d1c18f770a0b151381cd227f4c253
Getting image source signatures
Copying blob 2408cc74d12b done
Copying config a366738a18 done
Writing manifest to image destination
Storing signatures
> unpacking OCI image
> making squashfs image: "/home/user/.sarus/images/docker.io/library/alpine/latest.squashfs"

$ sarus images
REPOSITORY   TAG          IMAGE ID       CREATED               SIZE         SERVER
alpine       latest       a366738a1861   2022-05-25T09:19:59   2.59MB       docker.io

$ sarus run alpine cat /etc/os-release
NAME="Alpine Linux"
PRETTY_NAME="Alpine Linux v3.16"


You can refer to the section User guides for more information about how to use Sarus.