---
title: "Sandboxes"
url: https://www.daytona.com/compute-glossary/sandboxes
---

# Sandboxes

Part of the [Compute Glossary](https://www.daytona.com/compute-glossary.md).

A sandbox is a computer set apart for running code that should not reach anything else. Most sandboxes are full virtual machines, each with its own kernel, so code inside sees an ordinary computer. The boundary around it is what makes it a sandbox, not the software it runs. Code inside can install software and change any file without touching the host or another sandbox.

Every sandbox follows a lifecycle, from creation to deletion. It starts from an image, a saved file system that holds the operating system and any tools it needs. While it runs, its state can be captured in a snapshot and restored later on the same host or another one. When it stops, its disk is either kept for the next start or thrown away.

How fast a sandbox starts decides how it can be used. Building one from its image takes from a fraction of a second to many seconds, and restoring a snapshot can skip most of that. Fast starts let a program create a fresh sandbox for each task, instead of reusing one and carrying state between tasks.

## Terms

- [Sandbox](https://www.daytona.com/compute-glossary/sandboxes/sandbox.md): A sandbox is an isolated environment in which code runs without access to the system around it.
- [Isolation](https://www.daytona.com/compute-glossary/sandboxes/isolation.md): Isolation is the separation that keeps one workload from reaching other workloads or the host.
- [Lifecycle](https://www.daytona.com/compute-glossary/sandboxes/lifecycle.md): A lifecycle is the set of states that a sandbox moves through from creation to deletion.
- [Snapshot](https://www.daytona.com/compute-glossary/sandboxes/snapshot.md): A snapshot is a saved copy of the state of a sandbox or virtual machine at one moment.
- [Persistence](https://www.daytona.com/compute-glossary/sandboxes/persistence.md): Persistence is the keeping of a machine's data or state after it stops or restarts.
