Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/content/docs/sandbox/configuration/dockerfile.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ When you run `wrangler dev` or `wrangler deploy`, Wrangler automatically builds

## Related resources

- [Image Management](/containers/platform-details/image-management/) - Building and pushing images to Cloudflare\'s registry
- [Wrangler configuration](/sandbox/configuration/wrangler/) - Using custom images in wrangler.jsonc
- [Docker documentation](https://docs.docker.com/reference/dockerfile/) - Complete Dockerfile syntax
- [Container concepts](/sandbox/concepts/containers/) - Understanding the runtime environment
36 changes: 3 additions & 33 deletions src/content/docs/sandbox/configuration/wrangler.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The minimum required configuration for using Sandbox SDK:
"containers": [
{
"class_name": "Sandbox",
"image": "docker.io/cloudflare/sandbox:0.3.3",
"image": "./Dockerfile",
},
],
"durable_objects": {
Expand Down Expand Up @@ -49,7 +49,7 @@ Each container is backed by its own Durable Object. The container image contains
"containers": [
{
"class_name": "Sandbox",
"image": "docker.io/cloudflare/sandbox:0.3.3",
"image": "./Dockerfile",
},
],
}
Expand All @@ -60,20 +60,7 @@ Each container is backed by its own Durable Object. The container image contains
- **class_name** (string, required) - Must match the `class_name` of the Durable Object.
- **image** (string, required) - The Docker image to use. Must match your npm package version.

For custom images, use a Dockerfile:

```jsonc
{
"containers": [
{
"class_name": "Sandbox",
"image": "./Dockerfile",
},
],
}
```

See [Dockerfile reference](/sandbox/configuration/dockerfile/) for customization.
See [Dockerfile reference](/sandbox/configuration/dockerfile/) for information on customizing your Docker image.

### durable_objects.bindings

Expand Down Expand Up @@ -206,23 +193,6 @@ export default {
}
```

### Container image pull fails

**Error**: `Failed to pull container image`

**Solution**: Ensure you're using the correct image version (must match npm package):

```jsonc
{
"containers": [
{
"class_name": "Sandbox",
"image": "docker.io/cloudflare/sandbox:0.3.3",
},
],
}
```

### Missing migrations

**Error**: Durable Object not initialized
Expand Down
Loading