You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sandboxes are designed for short-lived workloads and experimentation:
36
+
37
+
-**AI coding agents** - copy a repo in, let the agent work, copy results out, then delete if needed.
38
+
-**CI and testing** - run builds and repeatable test suites in a clean environment.
39
+
-**Untrusted code** - isolate risky runs from your main services.
40
+
-**Comparison builds** - run multiple versions of tooling side-by-side without rebuilding your persistent VM.
41
+
42
+
You can launch sandboxes from the CLI, [Go SDK](/platform/go-sdk/), or [REST API](/reference/api).
43
+
44
+
33
45
## Launch, use, and delete
34
46
35
-
Launch a sandbox:
47
+
Launch an ephemeral sandbox that is deleted when you reboot it or stop Slicer for Mac:
36
48
37
49
```bash
38
50
slicer vm launch sbox
39
51
```
40
52
53
+
To launch a sandbox that's persistent and survives with a permanent disk:
54
+
55
+
```bash
56
+
slicer vm launch sbox --persistent
57
+
```
58
+
59
+
Launch a sandbox with memorable tags that you can query later on through the API or `slicer vm list`:
60
+
61
+
```bash
62
+
slicer vm launch sbox \
63
+
--tag owner=alex \
64
+
--tag task=k3s
65
+
```
66
+
41
67
Check what is running:
42
68
43
69
```bash
@@ -56,38 +82,32 @@ Open an interactive shell:
56
82
slicer vm shell sbox-1
57
83
```
58
84
59
-
Stop and remove the sandbox when you are done:
85
+
Stop and remove an ephemeral sandbox:
60
86
61
87
```bash
88
+
slicer vm shutdown sbox-1
89
+
90
+
# Or
62
91
slicer vm delete sbox-1
63
92
```
64
93
65
-
## Persistent sandboxes
66
-
67
-
By default, sandboxes are ephemeral - they are deleted when the daemon stops. To create a sandbox that retains its disk and survives restarts, use `--persistent`:
94
+
Stop a persistent sandbox (and retain it):
68
95
69
96
```bash
70
-
slicer vm launch sbox --persistent
97
+
slicer vm shutdown sbox-1
71
98
```
72
99
73
-
If the daemon restarts (e.g. after a reboot or sleep), persistent sandboxes are not automatically re-launched. To bring one back:
100
+
Permanently delete a persistent sandbox:
74
101
75
102
```bash
76
-
slicer relaunch sbox-1
103
+
slicer vm delete sbox-1
77
104
```
78
105
79
-
This boots the VM from its existing disk. Any data written to the filesystem is still there.
80
-
81
-
## Use cases
82
-
83
-
Sandboxes are designed for short-lived workloads and experimentation:
106
+
Relaunch a persistent sandbox (after a `slicer vm shutdown` or running `sudo reboot` in the guest):
84
107
85
-
-**AI coding agents** - copy a repo in, let the agent work, copy results out, then delete if needed.
86
-
-**CI and testing** - run builds and repeatable test suites in a clean environment.
87
-
-**Untrusted code** - isolate risky runs from your main services.
88
-
-**Comparison builds** - run multiple versions of tooling side-by-side without rebuilding your persistent VM.
89
-
90
-
You can launch sandboxes from the CLI, [Go SDK](/platform/go-sdk/), or [REST API](/reference/api).
0 commit comments