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 ¶
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.