umoci-raw-unpack(1)

umoci-raw-unpack1

Unpacks an oci image tag into a root filesystem

Usage

umoci raw unpack [umoci-unpack(1) flags] rootfs

Aleksa Sarai SEPTEMBER 2018

Overview

Extracts all of the layers (deterministically) to a root filesystem at path rootfs. This path must not already exist.

Options

The global options are defined in umoci(1), while the options for this particular subcommand are identical to umoci-unpack(1) with the exception that the rootfs path is provided rather than a bundle path.

Examples

The following downloads an image from a docker(1) registry using skopeo(1), unpacks said image to a root filesystem, generates an OCI runtime configuration file with umoci-raw-runtime-config(1) and then creates a new container with runc(8).

% skopeo copy docker://opensuse/amd64:42.2 oci:image:latest
# umoci raw unpack --image image rootfs
# umoci raw runtime-config --image image --rootfs rootfs config.json
# runc run ctr
[ container session ]

With --rootless it is also possible to do the above example without root privileges. umoci will generate a configuration that works with rootless containers in runc(8).

% skopeo copy docker://opensuse/amd64:42.2 oci:image:latest
% umoci raw unpack --image image --rootless rootfs
% umoci raw runtime-config --image image --rootfs rootfs --rootless config.json
% runc --root $HOME/runc run ctr
[ rootless container session ]

Releases

5 releases since Debian 10 (Buster); the text changed 4 times.

  1. 10
  2. 11
  3. 12
  4. 13
  5. Arch

From umoci 0.6.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.