In
list, LAST USED is how long ago a command last used the sandbox. EXPIRES is when a stopped sandbox and its disk will be deleted, due once that time has passed, and - while it runs. REASON is empty for a healthy sandbox. It shows QuotaExceeded when your organization’s quota is refusing the sandbox, EgressExceeded when the sandbox has lost internet access at your organization’s network egress limit, or why its container can’t start, such as ErrImagePull. The platform’s message is on the next line. Or open the agent’s Sandboxes tab in the console.
sandbox copy
One side is local. The other is
<agent>:<path> for the agent’s newest sandbox, or :<path> with --sandbox to name one. Remote paths are relative to /workspace unless absolute. An upload’s remote path is the full target path, never a directory to copy into.
Uploads are not atomic: if one fails part-way, the files already sent stay in the sandbox. A copy or exec wakes a stopped sandbox, so the first one takes longer. The sandbox then stays running until it stops for lack of use.
sandbox exec
Runs everything after-- in the sandbox and exits with its exit code. The command gets no stdin.
- A child left running in the background keeps
execopen until it closes its output. Redirect it (>/dev/null 2>&1 &) forexecto return at once. - Ctrl-C stops
execand the command with it.