python, microsandbox pulls the manifest, downloads the layers in parallel, and stacks them as a copy-on-write filesystem. Changes inside the sandbox don’t modify the base image. Two sandboxes using the same image share the same cached layers on disk.
Pull policies
By default, microsandbox pulls an image only if it isn’t already cached. You can change this behavior.Private registries
Authenticate to private registries by passing credentials.Registry TLS
By default, microsandbox connects to registries over HTTPS using system CA roots. You can customize this per-registry in~/.microsandbox/config.json.
Plain HTTP registries
Local registries often run without TLS. Mark them as insecure to connect over plain HTTP:Custom CA certificates
For registries using self-signed or internal CA certificates, pointca_certs to a PEM file. This applies globally to all registry connections:
Combined configuration
Image storage
Images are cached in the global microsandbox home directory:
Layers are content-addressable and deduplicated. If
python:3.12 and python:3.11 share a base layer, it’s stored once.
Use msb image prune to remove cached images that are not used by any sandbox or indexed snapshot and reclaim dangling image artifacts. Prune keeps images referenced by existing sandboxes or snapshots. It cleans up image metadata, unreachable manifests, orphaned layers, layer EROFS artifacts, fsmeta EROFS artifacts, and VMDK descriptor artifacts.
msb load accepts Docker image archives and OCI Image Layout archives. By default, msb save exports from the materialized EROFS cache as a Docker archive. Use --format oci to export as an OCI Image Layout archive instead. The expanded forms are msb image load and msb image save. The exported image should run the same way after msb load, but it is a regenerated archive: manifest digest and layer digests can differ from the original registry image.