Code execution in sandboxes
Notebook· 11.09· 1.5–2 h· Lesson 95 of 129
The notebook opens in your lab, in a new tab. If your server is stopped, it starts first (a few seconds).
By the end you can
- Explain what a sandbox backend adds (
execute) and why it must be isolated. - Tell apart
LocalShellBackend(no isolation) and a real sandbox. - Describe how
BaseSandboxbuilds every file tool on top ofexecute(). - Run an agent's code in a locked-down Docker container, and keep secrets out of it.
Before you start
Lessons 11.03–11.04, 11.08; optional: Docker Desktop or Docker Engine.
