Skip to content

lentiancn/docker-gentkit-openclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenClaw on Docker

MIT License GitHub Release

A lightweight Docker image for quick and easy deployment of OpenClaw ("lobster🦞" AI Agent) .

Tag naming convention

Image Tag Description
gentkit/openclaw <OPENCLAW_VERSION>-alpine OpenClaw <OPENCLAW_VERSION> based on Alpine Linux (gentkit/alpine:latest)
gentkit/openclaw latest-alpine Current OpenClaw version based on Alpine Linux (gentkit/alpine:latest)

Install Docker environment

Installation-Guide

Install OpenClaw

step 1 : Create home directory and set permission

sudo mkdir -p /usr/local/openclaw

step 2 : Generate and remember your token

# 
# Replace <your_token> in [step 3] and use it for first-time setup at http://localhost:18789
# Must match exactly
## e.g. CentOS / RHEL / Fedora
sudo yum install openssl -y && openssl rand -hex 32
## e.g. Debian / Ubuntu
sudo apt install openssl -y && openssl rand -hex 32

step 3 : Pull and run a new container

sudo docker run -d \
-p 18789:18789 \
-v /usr/local/openclaw:/root/.openclaw:rw \
-e GATEWAY_TOKEN=<your_token> \
--restart unless-stopped \
--name OpenClaw \
gentkit/openclaw:latest

NOTE : It's recommended to set up /root/.openclaw as a volume to ensure that your OpenClaw data can be backed up on your host.

GATEWAY_TOKEN can be set to any value you prefer (obtainable via openssl rand -hex 32). If not provided, the system will retrieve it via openssl rand -hex 32 by default.

Manage OpenClaw

OpenClaw Home

ls -l ~/.openclaw

Modify OpenClaw configuration

# enter Docker container
docker exec -it <your_container_id or your_container_name> /bin/bash

# view or edit
vi ~/.openclaw/openclaw.json

OpenClaw gateway status

# start OpenClaw gateway
docker start <your_container_id or your_container_name>

# stop OpenClaw gateway
docker stop <your_container_id or your_container_name>

Visit OpenClaw gateway UI

http://localhost:18789

Appendix

FAQ

About

A lightweight Docker image for quick and easy deployment of OpenClaw ("lobster" AI Agent).

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors