Skip to content

bhatti volume create

Create a persistent ext4 volume.

bhatti volume create —name <name> —size <MB>

Allocates an ext4 filesystem image on the server, owned by the calling user. The volume is unattached at creation; mount it at sandbox creation time with --volume name:/mount.

The volume survives sandbox destruction. Multiple sandboxes can attach the same volume sequentially, but only one sandbox can have it attached at a time (read-only mounts via name:/mount:ro are the only way to share live).

Terminal window
bhatti volume create --name workspace --size 5120
vol_a1b2c3d4 workspace 5120MB ready
Terminal window
# Attach at sandbox create
bhatti create --name dev --volume workspace:/workspace
Terminal window
# Attach read-only — multiple sandboxes can mount this simultaneously
bhatti create --name reader --volume workspace:/data:ro
FlagDefaultDescription
--name <string>(required)Volume name. Must match [a-zA-Z0-9][a-zA-Z0-9._-]{0,62}.
--size <int>(required)Initial size in MB. Grow later with bhatti volume resize.

See Global flags for --url, --token, --json, --timing, --data-dir.