The four states of a local sandbox
Four states: absent, running, stopped, and removed. sbx create and sbx run move a sandbox from absent to running. sbx stop and the auto-stop of the daemon move it to stopped, and sbx run --name, sbx exec, and sbx ports move it back to running. sbx rm and sbx prune move a stopped sandbox to removed, and sbx rm --force or sbx run --rm move a running one there. The sandboxes named are m101-demo and m101-demo-2 from the capture.
absent
no row in sbx ls
running
m101-demo
m101-demo-2
removed
gone from sbx ls
stopped
state preserved
sbx create
sbx run
sbx rm --force
sbx run --rm
sbx stop
or auto-stop
sbx run --name
sbx exec, sbx ports
sbx rm
sbx prune, stopped only
dashed border: no microVM running ยท double border: no record remains