This guide details the process of deploying OpenClaw (Clawdbot) within a Docker container to avoid running it directly on a host machine. It covers cloning the repository, executing the setup script to create volume-mounted directories, and configuring the initial onboarding wizard.
Highlights
OpenClaw supports Docker out of the box via a provided docker-setup.sh script and docker-compose.yml.
The setup creates two local directories (~/.openclaw and ~/openclaw/workspace) mounted as volumes for configuration and agent workspace.
Onboarding requires selecting 'manual' mode and a local gateway, with specific authentication steps for OpenAI ChatGPT OAuth.
Administrative tasks can be performed using the separate 'openclaw-cli' container defined in the Docker Compose setup.
The web UI runs on port 18789 and requires authentication via a token URL parameter.