Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
fec0135
docs: stub mcp governance policy docs
dvdksn Jul 14, 2026
a1bd7cd
docs: reorganize sandbox governance IA
dvdksn Jul 14, 2026
80a3034
docs: slim organization governance page
dvdksn Jul 14, 2026
b21b449
docs: add mcp policy reference
dvdksn Jul 14, 2026
499b236
docs: align mcp policy reference with gateway source
dvdksn Jul 14, 2026
38cdeae
docs: tidy sandbox governance IA and prose
dvdksn Jul 14, 2026
2ef20bf
docs: fix sandbox governance reference link
dvdksn Jul 14, 2026
7f78336
docs: refine sandbox governance cross-links
dvdksn Jul 14, 2026
aa3ec04
docs: clarify sandbox governance terminology
dvdksn Jul 14, 2026
818c9f7
docs: align sandbox access policy labels
dvdksn Jul 14, 2026
82a19b7
docs: add sandbox mcp gateway usage
dvdksn Jul 15, 2026
979afbc
docs: restructure sandbox mcp gateway page
dvdksn Jul 15, 2026
d84da9c
docs: clarify sandbox mcp registration options
dvdksn Jul 15, 2026
67a601e
docs: clarify sandbox mcp local server registration
dvdksn Jul 15, 2026
b7513cf
docs: clarify sbx mcp local registry flow
dvdksn Jul 15, 2026
87a357d
docs: explain sbx mcp registration inputs
dvdksn Jul 15, 2026
3dddbaf
docs: clarify local mcp package requirements
dvdksn Jul 15, 2026
753c5cb
docs: document sandbox mcp gateway trust boundary
dvdksn Jul 15, 2026
495b397
docs: address mcp governance self-review
dvdksn Jul 15, 2026
84b28d4
docs: clarify mcp policy default posture
dvdksn Jul 15, 2026
bb1feb1
docs: reduce mcp policy repetition
dvdksn Jul 15, 2026
39a9813
docs: use plaintext for mcp policy examples
dvdksn Jul 15, 2026
b713caa
docs: reorder sandbox mcp gateway page
dvdksn Jul 15, 2026
f8fe637
docs: clarify sandbox mcp local gateway tools
dvdksn Jul 15, 2026
0ebfbfb
docs: explain sandbox mcp gateway built-ins
dvdksn Jul 15, 2026
8119ff6
docs: align sandbox governance nav wording
dvdksn Jul 15, 2026
1f7506d
docs: clarify MCP registration policy limits
dvdksn Jul 16, 2026
a5d0097
docs: broaden organization policy timing guidance
dvdksn Jul 16, 2026
62ea695
docs: remove stale governance timing anchor
dvdksn Jul 16, 2026
44f003b
docs: reorganize MCP access policy guidance
dvdksn Jul 16, 2026
b8d4fb8
docs: explain MCP approval elicitation
dvdksn Jul 16, 2026
88028fd
docs: tighten MCP elicitation introduction
dvdksn Jul 16, 2026
fbedf5a
docs: fix sandbox governance link
dvdksn Jul 16, 2026
1430a49
docs: generalize organization policy procedure
dvdksn Jul 16, 2026
ca31c2b
docs: make MCP policy sections self-contained
dvdksn Jul 16, 2026
91e5607
docs: clarify local MCP policy behavior
dvdksn Jul 23, 2026
f368eb9
docs: defer hosted MCP policy values
dvdksn Jul 23, 2026
0f7de5c
docs: clarify local MCP policy values
dvdksn Aug 3, 2026
9272a1a
docs: fix audit links after governance move
dvdksn Aug 3, 2026
e6c2dc4
docs: document MCP add enhancements
dvdksn Aug 3, 2026
451b327
docs: clarify dynamic MCP behavior
dvdksn Aug 4, 2026
53c6a08
docs: fix MCP mode anchor
dvdksn Aug 4, 2026
7718c60
docs: add Sandboxes MCP go links
dvdksn Aug 4, 2026
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
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ See these docs to explore Docker Core add-ons, or products that need licenses:

- [Docker plans](/manuals/subscription/plans/_index.md) to learn about different add-ons
- [Manage seats](/manuals/admin/organization/manage/manage-seats.md) to add more seats to your Docker Core subscription
- [AI Governance](/manuals/ai/sandboxes/governance/org.md) to set up organization policies for your organization members
- [AI Governance plan](/manuals/subscription/plans/ai-governance.md) to learn about AI Governance license usage and billing
- [Docker Offload](/manuals/offload/about.md) to let your developers offload building and running containers to the cloud
8 changes: 5 additions & 3 deletions content/manuals/ai/sandboxes/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ system.
> [organization governance](governance/) requires a separate paid subscription.

Organization admins can
[centrally manage sandbox network and filesystem policies](governance/org.md),
so the same rules apply uniformly across every developer's machine. Available
on a separate paid subscription.
[centrally manage sandbox network, filesystem, and MCP policies](governance/access-controls/organization.md),
so the same controls apply uniformly across every developer's machine.
Available on a separate paid subscription.

## Get started

Expand Down Expand Up @@ -75,6 +75,8 @@ the [usage guide](usage.md) for basic commands.
- [Agents](agents/) — supported agents and per-agent configuration
- [Integrations](integrations/) — connect editors and apps like VS Code and
Cursor to a sandbox over SSH
- [MCP gateway](mcp-gateway.md) — register MCP servers and connect them to
sandboxed agents
- [Customize](customize/) — reusable templates and declarative kits for
extending or tailoring sandboxes
- [Architecture](architecture.md) — microVM isolation, workspace mounting,
Expand Down
2 changes: 1 addition & 1 deletion content/manuals/ai/sandboxes/agents/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Supported agents
linkTitle: Agents
weight: 30
weight: 40
description: AI coding agents supported by Docker Sandboxes.
keywords: docker sandboxes, ai agents, claude code, codex, cursor, gemini
---
Expand Down
20 changes: 18 additions & 2 deletions content/manuals/ai/sandboxes/architecture.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Architecture
weight: 40
weight: 70
description: Technical architecture of Docker Sandboxes; workspace mounting, storage, networking, and sandbox lifecycle.
keywords: docker sandboxes, architecture, microVM, workspace mounting, sandbox lifecycle
---
Expand Down Expand Up @@ -54,7 +54,7 @@ $ DOCKER_SANDBOXES_ENABLE_VIRTIOFS_CACHE=0 sbx run <template>

All outbound traffic from the sandbox routes through an HTTP/HTTPS proxy on
your host. Agents are configured to use the proxy automatically. The proxy
enforces [network access policies](governance/) and handles
enforces [network access policies](governance/access-controls/network.md) and handles
[credential injection](security/credentials.md). See
[Network isolation](security/isolation.md#network-isolation) for how this
works and [Default security posture](security/defaults.md) for what is
Expand Down Expand Up @@ -102,6 +102,22 @@ One limitation applies:
`HTTP_PROXY`, `HTTPS_PROXY`, or `DOCKER_SANDBOXES_PROXY` environment variables
explicitly.

## MCP gateway

Supported agents connect to a single MCP gateway endpoint for the sandbox. The
gateway runs on the host side of the sandbox boundary and brokers access to
registered MCP servers.

Registered MCP servers can be remote endpoints, or they can be local stdio
servers launched on the host. Local stdio servers don't run inside the sandbox
VM. If a local stdio server is packaged as an OCI image, or if you register an
explicit `docker` command, it uses Docker on the host.

When MCP policies apply, enforcement happens on the MCP gateway path, separate
from the HTTP/HTTPS network proxy. Server registration is checked before the
server is stored, and governed MCP requests are checked by the gateway before
tool calls, resource reads, prompt retrieval, or gateway meta-tool execution.

## Lifecycle

`sbx run` initializes a VM with a workspace for a specified agent and starts
Expand Down
2 changes: 1 addition & 1 deletion content/manuals/ai/sandboxes/customize/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Customizing sandboxes
linkTitle: Customize
description: Build reusable sandbox images, extend agents with tools and credentials, and define custom agents using templates and kits.
keywords: sandboxes, sbx, customize, templates, kits, mixins, custom agents
weight: 35
weight: 60
aliases:
- /ai/sandboxes/agents/custom-environments/
params:
Expand Down
2 changes: 1 addition & 1 deletion content/manuals/ai/sandboxes/customize/kit-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Install steps run under `sh`, not bash, so bash-only builtins such as
(`curl … | bash`) or wrap the step in `bash -c '…'` when you need them.

Downloads are subject to the sandbox's
[deny-by-default network policy](../governance/local.md). A domain that
[network access rules](../governance/access-controls/network.md). A domain that
resolves from your host can still be blocked inside the sandbox — for
example, `get.sdkman.io` returns a 403 until you allow it with
`sbx policy allow network get.sdkman.io`. A tool may also need base
Expand Down
26 changes: 13 additions & 13 deletions content/manuals/ai/sandboxes/faq.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: FAQ
weight: 70
weight: 110
description: Frequently asked questions about Docker Sandboxes.
keywords: docker sandboxes, sbx, faq, sign in, telemetry, clipboard, image paste, pricing, commercial use, allowlist, firewall, domains, proxy
---
Expand All @@ -11,8 +11,9 @@ Yes to both. The `sbx` CLI is free to use, including for commercial and
professional work, with no per-seat fee. Install it, sign in with a free
Docker account, and run sandboxes at no cost.

The only paid component is organization governance: centrally managed network
and filesystem policies, [sign-in enforcement](governance/sign-in-enforcement.md),
The only paid component is organization governance: centrally managed network,
filesystem, and MCP policies,
[sign-in enforcement](governance/monitor-and-enforce/sign-in-enforcement.md),
and [audit logs](governance/audit/). These
[organization governance features](governance/) require a separate paid
subscription —
Expand All @@ -29,9 +30,8 @@ Signing in gives each sandbox a verified identity, which lets Docker:
containers, install packages, and push code. Your Docker identity is the
anchor.
- **Enable team features.** Team-scale features like
[organization governance](governance/org.md), shared environments, and
audit logs need a concept of "who," and adding that later would be worse for
everyone.
[organization governance](governance/), shared environments, and audit logs
need a concept of "who," and adding that later would be worse for everyone.
- **Authenticate against Docker infrastructure.** Sandboxes pull images, run
daemons, and talk to Docker services. A Docker account authenticates those
requests.
Expand All @@ -40,13 +40,13 @@ Your Docker account email is only used for authentication, not marketing.

## Can I enforce sandbox policies across my organization?

Yes. Admins can centrally manage network and filesystem policies. These
rules apply to every sandbox in the
organization. When organization governance is active, it replaces local rules
set with `sbx policy` — local rules are no longer evaluated.
Yes. Admins can centrally manage network, filesystem, and MCP policies. These
controls apply to every sandbox in the organization. When organization
governance is active, it replaces local rules set with `sbx policy` — local
rules are no longer evaluated.

See [Organization governance](governance/org.md). This feature requires
a separate paid subscription —
See [Organization policies](governance/access-controls/organization.md). This
feature requires a separate paid subscription —
[contact Docker Sales](https://www.docker.com/products/ai-governance/#contact-sales)
to get started.

Expand Down Expand Up @@ -132,7 +132,7 @@ $ echo $BRAVE_API_KEY
## Why do agents run without approval prompts?

The sandbox itself is the safety boundary. Because agents run inside an
isolated microVM with [network policies](governance/),
isolated microVM with [network policies](governance/access-controls/network.md),
[credential isolation](security/credentials.md), and no access to your host
system outside explicitly shared paths, the usual reasons for approval prompts
(preventing destructive commands, network access, file modifications) are
Expand Down
19 changes: 10 additions & 9 deletions content/manuals/ai/sandboxes/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ Use ↑/↓ to navigate, Enter to select, or press 1–3.

**Balanced** is a good starting point — it permits traffic to common
development services while blocking everything else. You can adjust individual
rules later. See [Policies](governance/local.md) for a full description of each
option.
rules later. See
[default network presets](governance/access-controls/local.md#default-preset)
for a full description of each option.

> [!NOTE]
> See the [FAQ](faq.md) for details on why sign-in is required and what
Expand Down Expand Up @@ -216,11 +217,11 @@ To allow a specific host:
$ sbx policy allow network registry.npmjs.org
```

With **Balanced**, common development services are allowed by default. With
**Locked Down**, everything is blocked until you allow it — including your
model provider's API. If the agent can't reach a service it needs, the network
policy is the first place to look. See [Policies](governance/local.md) for the
full rule set and how to customize it.
With **Locked Down**, even your model provider API is blocked unless you
explicitly allow it. With **Balanced**, common development services are
permitted by default. See
[local policy](governance/access-controls/local.md) for the full rule set
and how to customize it.

## Clean up

Expand Down Expand Up @@ -264,5 +265,5 @@ Then explore:
network rules into a reusable definition you launch with a single flag.
- [Agents](agents/) — the full list of supported agents and how to configure
each one.
- [Governance](governance/) — centrally manage network and filesystem policies
across a team.
- [Governance](governance/) — centrally manage network, filesystem, and MCP
policies across a team.
76 changes: 49 additions & 27 deletions content/manuals/ai/sandboxes/governance/_index.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,33 @@
---
title: Governance
weight: 55
weight: 90
description: Control what sandboxes can access, from local developer rules to org-wide enforcement.
keywords: docker sandboxes, governance, policy, network access, filesystem access, organization policy
keywords: docker sandboxes, governance, policy, network access, filesystem access, mcp policy, organization policy
---

Sandbox governance covers the policy system that controls what sandboxes can
access over the network and on the filesystem. It operates at two layers, and
only one applies at a time:
access over the network, on the filesystem, and through MCP. For MCP setup and
server registration, see [MCP gateway](../mcp-gateway.md). Governance operates
at two layers, and only one applies at a time:

**Local policy** is configured per machine using the `sbx policy` CLI. It lets
individual developers customize which domains their sandboxes can reach. See
[Local policy](local.md).
**Local policy** is configured per machine using the `sbx policy` CLI. It
lets individual developers customize which domains their sandboxes can reach.
See [Local policy](access-controls/local.md).

**Organization policy** is configured centrally in the Docker Admin Console or
via the [Governance API](/reference/api/ai-governance/). Rules defined at the
org level apply uniformly across every sandbox in the organization. When
**Organization policy** is configured centrally in Docker Home. Network and
filesystem policies can also be managed via the
[Governance API](/reference/api/ai-governance/). Controls defined at the org
level apply uniformly across every sandbox in the organization. Organization
governance can also include MCP policies for sandbox MCP activity. When
organization governance is active, it replaces local policy entirely: local
`sbx policy` rules are no longer evaluated. See
[Organization policy](org.md).
[Organization policies](access-controls/organization.md).

Alongside this access-control policy, admins can require developers to sign in
as members of their organization before using sandboxes at all.
[Sign-in enforcement](sign-in-enforcement.md) is deployed through endpoint
management and ensures developers can't bypass organization policy by using a
personal account.
[Sign-in enforcement](monitor-and-enforce/sign-in-enforcement.md) is deployed
through endpoint management and ensures developers can't bypass organization
policy by using a personal account.

> [!NOTE]
> Organization governance is available on a separate paid subscription.
Expand All @@ -33,17 +36,36 @@ personal account.
## Learn more

- [Policy concepts](concepts.md): resource model, rule syntax, evaluation, and
precedence
- [Local policy](local.md): configure network and filesystem rules on your
machine with the `sbx policy` CLI
- [Organization policy](org.md): centrally manage sandbox policies across your
organization from the Admin Console
- [Sign-in enforcement](sign-in-enforcement.md): require developers to sign in
as organization members, enforced through endpoint management
- [Monitoring](monitoring.md): inspect active rules and monitor sandbox network
traffic with `sbx policy ls` and `sbx policy log`
Start with [Policy concepts](concepts.md) for the resource model, rule syntax,
MCP policy basics, evaluation, and precedence.

### Access controls

- [Local policy](access-controls/local.md): configure network rules on your
machine with the `sbx policy` CLI.
- [Organization policies](access-controls/organization.md): centrally manage
sandbox policies across your organization.
- [Network access policies](access-controls/network.md): control outbound network
access from sandboxes.
- [Filesystem access policies](access-controls/filesystem.md): control which
host paths sandboxes can mount as workspaces.
- [MCP access policies](access-controls/mcp.md): control MCP server registration,
tool calls, resources, prompts, and approval gates.

### Monitor and enforce

- [Monitoring policies](monitor-and-enforce/monitoring.md): inspect active
rules and monitor sandbox network traffic with `sbx policy ls` and
`sbx policy log`.
- [Audit logs](audit/): view, configure, export, and collect governance audit
records
- [API reference](/reference/api/ai-governance/): manage org policies
programmatically via the Governance API
records.
- [Sign-in enforcement](monitor-and-enforce/sign-in-enforcement.md): require
developers to sign in as organization members, enforced through endpoint
management.

### Reference

- [AI Governance API](/reference/api/ai-governance/): manage network and
filesystem org policies programmatically.
- [MCP policy reference](reference/mcp-policy.md): look up Docker MCP policy
actions, resources, attributes, context fields, and approval behavior.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
title: Access controls
weight: 20
description: Configure local and organization controls for sandbox network, filesystem, and MCP access.
keywords: docker sandboxes, access controls, governance, network access, filesystem access, MCP access
---

Access controls are expressed as policies. Local and organization pages
describe where policies apply. Network and filesystem pages describe the rules
inside those policies. MCP policies use Cedar statements instead of the network
and filesystem rule format.

## Policy scope

- [Local policy](local.md): configure network rules on a developer machine with
the `sbx policy` CLI.
- [Organization policies](organization.md): manage centralized policies for an
organization or team.

## Access surfaces

- [Network access policies](network.md): control outbound network access from
sandboxes.
- [Filesystem access policies](filesystem.md): control which host paths
sandboxes can mount as workspaces.
- [MCP access policies](mcp.md): control MCP server registration, tool calls,
resources, prompts, and approval gates with Cedar policy.
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
title: Filesystem access policies
linkTitle: Filesystem access
weight: 40
description: Control which host paths Docker Sandboxes can mount as workspaces with organization filesystem policies.
keywords: docker sandboxes, filesystem access, filesystem rules, workspace mount, organization policy, governance
---

Filesystem access policies control which host paths a sandbox can mount as a
workspace. Each policy contains one or more rules that restrict sandbox
workspaces to approved directories.

Filesystem access is managed with [organization policies](organization.md). When
organization governance is active, filesystem rules replace local behavior for
workspace mounts.

## Rule syntax

Filesystem rules use the actions `read` and `write`. Resources are host path
patterns.

A writable workspace mount must be allowed by both a `read` rule and a `write`
rule. A read-only workspace needs only `read`.

Examples:

- `~/**`
- `/data/project/**`
- `C:\data\project\**`
- `\\wsl.localhost\<distro>\data\project\**`

Use `**` to match a directory tree recursively. A single `*` matches only one
path segment. For exact path matching behavior across macOS, Linux, Windows,
and WSL, see [Filesystem rules](../concepts.md#filesystem-rules).

## Organization filesystem rules

Organization filesystem rules belong to policies that can apply to the whole
organization or to selected teams. For setup steps and team scoping, see
[Organization policies](organization.md).

Filesystem policy is checked when a workspace is mounted, which happens when a
sandbox is created. To apply a filesystem policy change to a running workflow,
remove the sandbox and create a new one.

## Troubleshooting

### Sandbox cannot mount workspace

If a sandbox fails to mount with a `mount policy denied` error, verify that the
filesystem allow rule uses `**` rather than `*`. A single `*` doesn't match
across directory separators.
Loading