Skip to content

Commit dfef943

Browse files
committed
fix: polish docker setup flow
1 parent 39c6822 commit dfef943

3 files changed

Lines changed: 34 additions & 4 deletions

File tree

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ services:
3232
environment:
3333
HOME: /home/node
3434
TERM: xterm-256color
35+
OPENCLAW_GATEWAY_TOKEN: ${OPENCLAW_GATEWAY_TOKEN}
3536
BROWSER: echo
3637
CLAUDE_AI_SESSION_KEY: ${CLAUDE_AI_SESSION_KEY}
3738
CLAUDE_WEB_SESSION_KEY: ${CLAUDE_WEB_SESSION_KEY}

docker-setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,12 @@ docker compose "${COMPOSE_ARGS[@]}" run --rm openclaw-cli onboard --no-install-d
191191
echo ""
192192
echo "==> Provider setup (optional)"
193193
echo "WhatsApp (QR):"
194-
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers login"
194+
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels login"
195195
echo "Telegram (bot token):"
196-
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers add --provider telegram --token <token>"
196+
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels add --channel telegram --token <token>"
197197
echo "Discord (bot token):"
198-
echo " ${COMPOSE_HINT} run --rm openclaw-cli providers add --provider discord --token <token>"
199-
echo "Docs: https://docs.openclaw.ai/providers"
198+
echo " ${COMPOSE_HINT} run --rm openclaw-cli channels add --channel discord --token <token>"
199+
echo "Docs: https://docs.openclaw.ai/channels"
200200

201201
echo ""
202202
echo "==> Starting gateway"

docs/install/docker.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ After it finishes:
5656

5757
- Open `http://127.0.0.1:18789/` in your browser.
5858
- Paste the token into the Control UI (Settings → token).
59+
- Need the tokenized URL again? Run `docker compose run --rm openclaw-cli dashboard --no-open`.
5960

6061
It writes config/workspace on the host:
6162

@@ -72,6 +73,27 @@ docker compose run --rm openclaw-cli onboard
7273
docker compose up -d openclaw-gateway
7374
```
7475

76+
Note: run `docker compose ...` from the repo root. If you enabled
77+
`OPENCLAW_EXTRA_MOUNTS` or `OPENCLAW_HOME_VOLUME`, the setup script writes
78+
`docker-compose.extra.yml`; include it when running Compose elsewhere:
79+
80+
```bash
81+
docker compose -f docker-compose.yml -f docker-compose.extra.yml <command>
82+
```
83+
84+
### Control UI token + pairing (Docker)
85+
86+
If you see “unauthorized” or “disconnected (1008): pairing required”, fetch a
87+
fresh dashboard link and approve the browser device:
88+
89+
```bash
90+
docker compose run --rm openclaw-cli dashboard --no-open
91+
docker compose run --rm openclaw-cli devices list
92+
docker compose run --rm openclaw-cli devices approve <requestId>
93+
```
94+
95+
More detail: [Dashboard](/web/dashboard), [Devices](/cli/devices).
96+
7597
### Extra mounts (optional)
7698

7799
If you want to mount additional host directories into the containers, set
@@ -254,6 +276,13 @@ docker compose run --rm openclaw-cli channels add --channel discord --token "<to
254276

255277
Docs: [WhatsApp](/channels/whatsapp), [Telegram](/channels/telegram), [Discord](/channels/discord)
256278

279+
### OpenAI Codex OAuth (headless Docker)
280+
281+
If you pick OpenAI Codex OAuth in the wizard, it opens a browser URL and tries
282+
to capture a callback on `http://127.0.0.1:1455/auth/callback`. In Docker or
283+
headless setups that callback can show a browser error. Copy the full redirect
284+
URL you land on and paste it back into the wizard to finish auth.
285+
257286
### Health check
258287

259288
```bash

0 commit comments

Comments
 (0)