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
Copy file name to clipboardexpand all lines: apps/web/src/app/(docs)/docs/sandbox-template/start-cmd/page.mdx
+15-4
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ The idea behind the start command feature is to lower the wait times for your us
7
7
8
8
## How to add start command
9
9
10
-
When you are building a sandbox template you can specify the start command by using the [`-c`](/docs/cli/commands#build) option:
10
+
When you are building a sandbox template you can specify the start command by using the [`-c`](/docs/sdk-reference/cli/v1.0.9/template#e2b-template-build) option:
11
11
12
12
```bash
13
13
e2b build -c "<your-start-command>"
@@ -17,7 +17,7 @@ When you spawn the custom sandbox you built, the start command will be already r
17
17
18
18
19
19
## How it works
20
-
Every time you are building a [custom sandbox](/docs/guide/custom-sandbox), we create a container based on the [`e2b.Dockerfile`](/docs/sandbox/templates/template-file) file you create in the process.
20
+
Every time you are building a [custom sandbox](/docs/sandbox-template), we create a container based on the [`e2b.Dockerfile`](/docs/sandbox-template#3-customize-e2b-dockerfile) file you create in the process.
21
21
We extract the container's filesystem and start a sandbox with this extracted filesystem.
22
22
We call this sandbox a _template sandbox_.
23
23
@@ -36,12 +36,16 @@ This allows us to load the sandbox in a few hundred milliseconds any time later
36
36
37
37
38
38
## Limits
39
-
- The network isn't accessible when running the start command.
39
+
- The network isn't accessible when running the start command during the build phase.
40
40
- We wait 15 seconds after we execute the start command before we snapshot the sandbox.
41
41
42
42
43
43
## Logs
44
-
You can retrieve the start command's logs using the SDK during runtime:
44
+
You can retrieve the start command's logs using the SDK during runtime.
45
+
46
+
<Note>
47
+
These logs are the logs from the start command during the build phase.
0 commit comments