Skip to content

Commit ee0d376

Browse files
authored
refactor(docker): retire ClawDock shell helpers (#133594)
1 parent 5835fbe commit ee0d376

8 files changed

Lines changed: 50 additions & 1483 deletions

File tree

‎docs/docs.json‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
]
5353
},
5454
"redirects": [
55+
{
56+
"source": "/install/clawdock",
57+
"destination": "/install/docker#clawdock-migration"
58+
},
5559
{
5660
"source": "/concepts/message-lifecycle-refactor",
5761
"destination": "/plugins/sdk-channel-outbound"
@@ -1156,7 +1160,6 @@
11561160
"pages": [
11571161
"install/ansible",
11581162
"install/bun",
1159-
"install/clawdock",
11601163
"install/docker",
11611164
"install/nix",
11621165
"install/podman"

‎docs/install/clawdock.md‎

Lines changed: 0 additions & 113 deletions
This file was deleted.

‎docs/install/docker-vm-runtime.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,3 @@ for recovery when a migration cannot complete automatically.
185185

186186
- [Docker](/install/docker)
187187
- [Podman](/install/podman)
188-
- [ClawDock](/install/clawdock)

‎docs/install/docker.md‎

Lines changed: 46 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ summary: "Optional Docker-based setup and onboarding for OpenClaw"
33
read_when:
44
- You want a containerized gateway instead of local installs
55
- You are validating the Docker flow
6+
- You are migrating from ClawDock shell helpers
67
title: "Docker"
78
---
89

@@ -83,7 +84,7 @@ Hosting multiple users? See [Multi-tenant hosting](/gateway/multi-tenant-hosting
8384
docker compose run --rm openclaw-cli dashboard --no-open
8485
```
8586

86-
With a custom `OPENCLAW_GATEWAY_PORT`, replace port `18789` in the printed URL with your host port before opening it in the browser; keep the rest of the URL intact. Dashboard commands inside either container use the internal listener port. [ClawDock](/install/clawdock) remaps the browser URL automatically.
87+
With a custom `OPENCLAW_GATEWAY_PORT`, replace port `18789` in the printed URL with your host port before opening it in the browser; keep the rest of the URL intact. Dashboard commands inside either container use the internal listener port.
8788

8889
</Step>
8990

@@ -456,16 +457,55 @@ For full VM persistence details, see [Docker VM Runtime - What persists where](/
456457

457458
**Disk growth hotspots:** `media/`, per-agent SQLite databases, legacy session JSONL transcripts, the shared SQLite state database, installed plugin package roots, and rolling file logs under `/tmp/openclaw/`.
458459

459-
### Shell helpers (optional)
460+
### ClawDock migration
460461

461-
For shorter day-to-day commands, install [ClawDock](/install/clawdock):
462+
ClawDock has been removed. Use Docker Compose directly for day-to-day operations.
463+
Existing copies downloaded with `curl` are not automatically uninstalled. Remove
464+
the `source ~/.clawdock/clawdock-helpers.sh` line from your shell startup file
465+
(`~/.zshrc` or `~/.bashrc`), then start a new shell. If you sourced a checkout copy
466+
from `scripts/clawdock/` or the older `scripts/shell-helpers/` path, remove that
467+
source line instead. Keep your OpenClaw state, credentials, workspace, project
468+
`.env`, and volumes.
469+
470+
Run commands from the directory containing your `docker-compose.yml`. **Keep the
471+
same Compose file set and order on every command** so mounts and settings remain
472+
intact. With default file discovery, Compose loads `docker-compose.override.yml`
473+
automatically when present. Extra and sandbox files need explicit `-f` options;
474+
when using `-f`, include the standard override too if you use one. For example,
475+
if your deployment uses all four files:
462476

463477
```bash
464-
mkdir -p ~/.clawdock && curl -sL https://raw.githubusercontent.com/openclaw/openclaw/main/scripts/clawdock/clawdock-helpers.sh -o ~/.clawdock/clawdock-helpers.sh
465-
echo 'source ~/.clawdock/clawdock-helpers.sh' >> ~/.zshrc && source ~/.zshrc
478+
docker compose -f docker-compose.yml -f docker-compose.override.yml \
479+
-f docker-compose.extra.yml -f docker-compose.sandbox.yml ps
466480
```
467481

468-
If you installed from the older `scripts/shell-helpers/clawdock-helpers.sh` path, rerun the command above so your local helper tracks the current location. Then use `clawdock-start`, `clawdock-stop`, `clawdock-dashboard`, etc. (run `clawdock-help` for the full list).
482+
Use only the files your deployment already uses. The commands below show the
483+
default file set; insert your existing `-f` options after `docker compose` when
484+
needed. See [Manual flow](/install/docker#manual-flow) for setup and extra mounts.
485+
486+
| Task | Command |
487+
| ---------------- | ------------------------------------------------------------------ |
488+
| Start | `docker compose up -d openclaw-gateway` |
489+
| Stop the stack | `docker compose down` |
490+
| Restart | `docker compose restart openclaw-gateway` |
491+
| Container status | `docker compose ps` |
492+
| Follow logs | `docker compose logs -f openclaw-gateway` |
493+
| Gateway shell | `docker compose exec openclaw-gateway bash` |
494+
| CLI | `docker compose run --rm openclaw-cli <command>` |
495+
| Dashboard URL | `docker compose run --rm openclaw-cli dashboard --no-open` |
496+
| List devices | `docker compose run --rm openclaw-cli devices list` |
497+
| Approve a device | `docker compose run --rm openclaw-cli devices approve <requestId>` |
498+
| Inspect config | `docker compose run --rm openclaw-cli config get <path>` |
499+
500+
Start the gateway before using the shell or CLI commands. For a custom host port,
501+
adjust the printed dashboard URL as described in [Containerized gateway](/install/docker#containerized-gateway).
502+
Use [Health checks](/install/docker#health-checks) to verify the gateway and
503+
[Update OpenClaw](/install/docker-vm-runtime#update-openclaw) for image updates.
504+
505+
Token setup belongs to the [Docker setup flow](/install/docker#containerized-gateway).
506+
If you need the Control UI token, read `OPENCLAW_GATEWAY_TOKEN` privately from the
507+
project `.env`. [`config get <path>`](/cli/config) redacts sensitive values; it
508+
does not reveal the full token.
469509

470510
<AccordionGroup>
471511
<Accordion title="Enable agent sandbox for Docker gateway">
@@ -667,6 +707,5 @@ For npm installs without a source checkout, see [Sandboxing § Images and setup]
667707

668708
- [Install Overview](/install) — all installation methods
669709
- [Podman](/install/podman) — Podman alternative to Docker
670-
- [ClawDock](/install/clawdock) — Docker Compose community setup
671710
- [Updating](/install/updating) — keeping OpenClaw up to date
672711
- [Configuration](/gateway/configuration) — gateway configuration after install

‎docs/install/index.md‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,6 @@ curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -
184184
<Card title="Bun" href="/install/bun" icon="zap">
185185
Optional dependency installer and package-script runner.
186186
</Card>
187-
<Card title="ClawDock" href="/install/clawdock" icon="container">
188-
Community Docker Compose setup and shell helpers.
189-
</Card>
190187
<Card title="Docker" href="/install/docker" icon="container">
191188
Containerized or headless deployments.
192189
</Card>

0 commit comments

Comments
 (0)