@mastra/docker 0.7.0-alpha.0 → 0.7.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -44
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -8,8 +8,6 @@ Docker container sandbox provider for Mastra workspaces. Uses long-lived contain
8
8
  npm install @mastra/docker
9
9
  ```
10
10
 
11
- Requires [Docker Engine](https://docs.docker.com/engine/install/) running on the host machine.
12
-
13
11
  ## Usage
14
12
 
15
13
  ```typescript
@@ -31,50 +29,15 @@ const agent = new Agent({
31
29
  });
32
30
  ```
33
31
 
34
- ### Bind Mounts
35
-
36
- Mount host directories into the container:
37
-
38
- ```typescript
39
- const workspace = new Workspace({
40
- sandbox: new DockerSandbox({
41
- image: 'node:22-slim',
42
- volumes: {
43
- '/my/project': '/workspace/project',
44
- '/shared/data': '/data',
45
- },
46
- }),
47
- });
48
- ```
49
-
50
- ### Reconnection
51
-
52
- Containers can be reconnected by providing a fixed `id`. On `start()`, an existing container with a matching label is reused instead of creating a new one:
53
-
54
- ```typescript
55
- const workspace = new Workspace({
56
- sandbox: new DockerSandbox({
57
- id: 'persistent-sandbox',
58
- image: 'node:22-slim',
59
- }),
60
- });
61
- ```
32
+ ## Documentation
62
33
 
63
- ### Docker Connection Options
34
+ - [Docker Sandbox integration guide](https://mastra.ai/integrations/sandboxes/docker)
35
+ - [Workspace documentation](https://mastra.ai/docs/mastra-platform/workspaces)
64
36
 
65
- Connect to remote Docker hosts or use custom socket paths:
37
+ ## Changelog
66
38
 
67
- ```typescript
68
- const workspace = new Workspace({
69
- sandbox: new DockerSandbox({
70
- dockerOptions: {
71
- host: '192.168.1.100',
72
- port: 2376,
73
- },
74
- }),
75
- });
76
- ```
39
+ See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/workspaces/docker/CHANGELOG.md) for version history and release notes.
77
40
 
78
- ## Documentation
41
+ ## Support
79
42
 
80
- For more information, see the [DockerSandbox reference](https://mastra.ai/docs/reference/workspace/docker-sandbox).
43
+ We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/docker",
3
- "version": "0.7.0-alpha.0",
3
+ "version": "0.7.0-alpha.1",
4
4
  "description": "Docker container sandbox provider for Mastra workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -31,10 +31,10 @@
31
31
  "tsdown": "0.22.9",
32
32
  "typescript": "^7.0.2",
33
33
  "vitest": "4.1.10",
34
- "@internal/types-builder": "0.0.104",
35
34
  "@internal/workspace-test-utils": "0.0.73",
36
- "@internal/lint": "0.0.129",
37
- "@mastra/core": "1.64.0-alpha.2"
35
+ "@mastra/core": "1.64.0-alpha.7",
36
+ "@internal/types-builder": "0.0.104",
37
+ "@internal/lint": "0.0.129"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@mastra/core": ">=1.12.0-0 <2.0.0-0"