rootfs

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package rootfs unpacks OCI/Docker image layers directly onto the container's root filesystem, and resets it in preparation for a different image.

Because peel already *is* the container's PID 1, there is no separate "container filesystem" to assemble out-of-band and later switch into: the layers are extracted straight onto "/". The only special handling needed is (a) OCI whiteout files, and (b) refusing to let a layer overwrite the handful of paths peel needs to keep control of the container across restarts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyLayer

func ApplyLayer(root string, r io.Reader) error

ApplyLayer extracts an uncompressed OCI/Docker layer tar stream onto root, applying whiteout files as it goes per: https://github.com/opencontainers/image-spec/blob/main/layer.md

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL