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
In this guide, you will deploy a Worker that can make requests to one or more Containers in response to end-user requests.
11
11
In this example, each container runs a small webserver written in Go.
@@ -17,10 +17,9 @@ This example Worker should give you a sense for simple Container use, and provid
17
17
### Ensure Docker is running locally
18
18
19
19
In this guide, we will build and push a container image alongside your Worker code. By default, this process uses
20
-
[Docker](https://www.docker.com/) to do so. You must have Docker running locally when you run `wrangler deploy`. For most people, the best way to install Docker is to follow the [docs for installing Docker Desktop](https://docs.docker.com/desktop/). Other tools like [Colima](https://github.com/abiosoft/colima) may also work.
20
+
[Docker](https://www.docker.com/) to do so.
21
21
22
-
You can check that Docker is running properly by running the `docker info` command in your terminal. If Docker is running, the command will succeed. If Docker is not running,
23
-
the `docker info` command will hang or return an error including the message "Cannot connect to the Docker daemon".
22
+
<Renderproduct="containers"file="docker-setup" />
24
23
25
24
{/* FUTURE CHANGE: Add some image you can use if you don't have Docker running. */}
26
25
{/* FUTURE CHANGE: Link to docs on alternative build/push options */}
The sandbox ID should be unique per user or session. The same ID will always return the same sandbox instance with persistent state.
20
+
The same sandbox ID will always return the same sandbox instance. You can architect your application to use a single sandbox ID for multiple users, or use unique IDs per user or session. Using unique sandbox IDs per user is recommended if you are providing code generation or execution capabilities directly to your users.
Copy file name to clipboardExpand all lines: src/content/docs/sandbox/concepts/architecture.mdx
+31-60Lines changed: 31 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,39 +5,37 @@ sidebar:
5
5
order: 1
6
6
---
7
7
8
-
The Sandbox SDK provides isolated code execution environments on Cloudflare's edge network. It combines three Cloudflare technologies:
8
+
Sandbox SDK lets you execute untrusted code safely from your Workers. It combines three Cloudflare technologies to provide secure, stateful, and isolated execution:
9
9
10
-
-**Workers** - JavaScript runtime at the edge
11
-
-**Durable Objects** - Stateful compute with persistent storage
12
-
-**Containers** - Isolated execution environments with full Linux capabilities
10
+
-**Workers** - Your application logic that calls the Sandbox SDK
11
+
-**Durable Objects** - Persistent sandbox instances with unique identities
12
+
-**Containers** - Isolated Linux environments where code actually runs
Copy file name to clipboardExpand all lines: src/content/docs/sandbox/concepts/containers.mdx
+5-30Lines changed: 5 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,36 +5,11 @@ sidebar:
5
5
order: 3
6
6
---
7
7
8
-
Each sandbox runs in an isolated Linux container based on Ubuntu 22.04.
8
+
Each sandbox runs in an isolated Linux container with Python, Node.js, and common development tools pre-installed. For a complete list of pre-installed software and how to customize the container image, see [Dockerfile reference](/sandbox/configuration/dockerfile/).
9
9
10
-
## Pre-installed software
10
+
## Runtime software installation
11
11
12
-
The base container comes pre-packaged with a full development environment:
13
-
14
-
**Languages and runtimes**:
15
-
- Python 3.11 (with pip)
16
-
- Node.js 20 LTS (with npm)
17
-
- Bun (JavaScript/TypeScript runtime)
18
-
19
-
**Python packages**:
20
-
- NumPy - Numerical computing
21
-
- pandas - Data analysis
22
-
- Matplotlib - Plotting and visualization
23
-
- IPython - Interactive Python
24
-
25
-
**Development tools**:
26
-
- Git - Version control
27
-
- Build tools (gcc, make, pkg-config)
28
-
- Text editors (vim, nano)
29
-
- Process monitoring (htop, procps)
30
-
31
-
**Utilities**:
32
-
- curl, wget - HTTP clients
33
-
- jq - JSON processor
34
-
- Network tools (ping, dig, netstat)
35
-
- Compression (zip, unzip)
36
-
37
-
Install additional software at runtime or [customize the base image](/sandbox/configuration/dockerfile/):
12
+
Install additional software at runtime using standard package managers:
0 commit comments