Skip to main content
Named volumes persist independently of sandboxes and are stored by default under ~/.microsandbox/volumes/.

msb volume create

msb volumes

Expanded form: msb volume ls. The shorter plural alias msb vols is also available.

msb volume inspect

msb volume rm

Using volumes with sandboxes

Mount a named volume when creating or running a sandbox. The volume name goes before the colon, the guest path after. CLI named mounts are idempotent: if the named volume is missing, microsandbox creates it; if it already exists with compatible settings, microsandbox reuses it.
--mount-named accepts named-volume creation options in the mount option block: kind=dir|disk, size=<size> for disk-backed volumes, and quota=<size> for directory-backed volumes. kind=disk requires size=...; size=... without kind=disk is rejected. If an existing volume has a different kind, capacity, or quota than the requested settings, sandbox creation fails instead of silently changing the volume. Bind mounts and directory-backed named volumes also accept paired uid=<N>,gid=<N> options. These IDs set the guest owner fallback for host files without a per-file stat override; they do not change host ownership. Both values are required, and they cannot be used with stat-virt=off or a disk-backed mount.
The CLI distinguishes bind mounts from named volumes by looking for a / or . prefix. ./src:/app is a bind mount (host path). myvolume:/data is a named volume. This matches Docker’s convention.