Getting started#
Install Coopr on Linux (amd64 or arm64), then build an OCI container image using a reusable component. The tutorial uses Podman to run the image; see host setup if you need it.
Install#
This installs the latest stable release. For a specific version or Nix, see other installation options.
Run in a container#
The published image includes Coopr and its build helpers. Use it with Podman to build images without installing Coopr on your host.
Build your first image#
Set up your host#
Install Podman using your distribution's instructions and complete its rootless setup. Run this basic check as your normal user:
The container prints no output and exits successfully. Run Coopr and Podman as the same user with the same storage settings so the tutorial can build and run images without a transfer step. Podman is needed to run the tutorial's image; Coopr itself does not require it.
The Coopr binary embeds the Buildah backend, but does not install host tools. Native rootless builds need:
- User and mount namespaces, subordinate UID/GID ranges, and working
newuidmapandnewgidmaphelpers. - A supported container storage configuration and an OCI runtime such as
crun. Overlay storage may needfuse-overlayfs. - The helpers required by your network configuration for networked build steps, and registry access for uncached base images.
The Podman check does not verify every Coopr build prerequisite. See security and rootless builds for isolation, resource limits, and nested builds.
Other installation options#
Install a specific version#
Pass a published release tag to the installer:
You can also download binary archives from GitHub releases. Extract the complete archive and keep its accompanying libexec/ directory beside coopr; RUN blocks with multiple commands require its helper. The installer handles this layout automatically.
Each release also includes corresponding sources and rebuild instructions.
Install with Nix#
With Nix flakes enabled:
This uses the repository's default branch. See contributing to build from a checkout or set up a development shell.