Crates.io | oci-unpack |
lib.rs | oci-unpack |
version | 0.1.0 |
source | src |
created_at | 2024-11-04 01:40:20.462387 |
updated_at | 2024-11-04 01:40:20.462387 |
description | Download and unpack OCI images. |
homepage | |
repository | https://github.com/lab-tool/oci-unpack |
max_upload_size | |
id | 1434459 |
size | 129,892 |
oci-unpack is a Rust crate to download and unpack OCI images from a container registry.
The unpack process is running in a sandbox created with Landlock, so it only has access to the files beneath the target directory.
See the API documentation for more details.
The repository includes an CLI program in the examples
directory.
$ cargo run --quiet --release --example unpack -- alpine /tmp/alpine-unpack
The following commands are equivalent to the process implemented in this crate:
$ skopeo copy docker://alpine oci:alpine-image:latest
$ umoci unpack --image alpine-image alpine-unpack