OpenClaw Docker Deployment Summary

OpenClaw Docker Deployment Summary

Date: 2026-03-01
Deployment Method: docker-setup.sh
Status: ✅ Successfully Deployed


Overview

OpenClaw was deployed using the Docker setup script with a local build. The deployment encountered and resolved a TypeScript compilation error during the Docker image build process.


Issue Encountered & Fixed

Problem

During the Docker image build, the TypeScript compiler failed with the following error:

1
2
src/agents/pi-embedded-runner/extra-params.ts(338,7): error TS2353:
Object literal may only specify known properties, and 'openaiWsWarmup' does not exist in type 'SimpleStreamOptions'.

Root Cause

The createOpenAIDefaultTransportWrapper function was passing the openaiWsWarmup property to the underlying() function, but SimpleStreamOptions type does not include this property.

Solution

Modified the type assertion to satisfy the function signature.


Deployment Steps Completed

  1. ✅ Built Docker image openclaw:local
  2. ✅ Ran interactive onboarding
  3. ✅ Set Control UI allowed origins
  4. ✅ Set gateway.mode=local configuration
  5. ✅ Started OpenClaw gateway container

Access Information

Component Details
Gateway URL ws://0.0.0.0:18789
Gateway Ports 18789 (WebSocket), 18790 (Bridge)
Config Directory ~/.openclaw
Workspace Directory ~/.openclaw/workspace
Browser Control http://127.0.0.1:18791/

Useful Commands

View Logs

1
docker compose -f docker-compose.yml -f docker-compose.extra.yml logs -f openclaw-gateway

Health Check

1
docker compose -f docker-compose.yml -f docker-compose.extra.yml exec openclaw-gateway node dist/index.js health --token "YOUR_TOKEN"

Channel Setup

1
2
3
4
5
6
7
8
# WhatsApp (QR code login)
docker compose -f docker-compose.yml -f docker-compose.extra.yml run --rm openclaw-cli channels login

# Telegram (bot token)
docker compose -f docker-compose.yml -f docker-compose.extra.yml run --rm openclaw-cli channels add --channel telegram --token <token>

# Discord (bot token)
docker compose -f docker-compose.yml -f docker-compose.extra.yml run --rm openclaw-cli channels add --channel discord --token <token>

Restart Gateway

1
docker compose -f docker-compose.yml -f docker-compose.extra.yml restart openclaw-gateway

References


Status: ✅ Production Ready