When trying to create a custom sandbox template, you might encounter the issue when trying to callDocumentation Index
Fetch the complete documentation index at: https://e2b.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
.runCode / .run_code method using the E2B Code Interpreter SDK.
The reason for this is that either the default start command is not specified on the template or that the base image is other than the Code Interpreter image thus the Code Interpreter inside the sandbox cannot be started.
Example error
Solution
Current build system (V2)
With the current build system, you need to use thecode-interpreter as a base template in your template definition.
We strongly recommend building custom template via the previous example. However, if you choose to build from docker image, do as follows.