docs(docker): add Docker-in-Docker browser sandbox configuration
Document the cdpHost config option and Docker-in-Docker setup for running sandbox browsers when the gateway is containerized. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
51decc6535
commit
ca3e65eb35
@ -373,6 +373,38 @@ Use config:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Docker-in-Docker (gateway in container)
|
||||||
|
|
||||||
|
If the gateway itself runs in a Docker container and you want sandbox browsers,
|
||||||
|
set `cdpHost` to `host.docker.internal` (Docker Desktop) so the gateway can
|
||||||
|
reach the browser container's CDP endpoint:
|
||||||
|
|
||||||
|
```json5
|
||||||
|
{
|
||||||
|
agents: {
|
||||||
|
defaults: {
|
||||||
|
sandbox: {
|
||||||
|
browser: {
|
||||||
|
enabled: true,
|
||||||
|
cdpHost: "host.docker.internal"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
tools: {
|
||||||
|
sandbox: {
|
||||||
|
tools: {
|
||||||
|
allow: ["*"] // browser is denied by default
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
The gateway automatically remaps volume mount paths for Docker-in-Docker when
|
||||||
|
`CLAWDBOT_SANDBOX_HOST_CONFIG_DIR` and `CLAWDBOT_SANDBOX_HOST_WORKSPACE_DIR`
|
||||||
|
environment variables are set (already configured in `docker-compose.yml`).
|
||||||
|
|
||||||
Custom browser image:
|
Custom browser image:
|
||||||
|
|
||||||
```json5
|
```json5
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user