1.下载
docker pull ghcr.io/1186258278/openclaw-zh:latest
“
IMAGE=ghcr.io/1186258278/openclaw-zh:latest
# 1. 初始化(首次运行)
# Docker 需要交互式运行来配置 AI 模型和 API 密钥
docker run --rm -it -v openclaw-data:/root/.openclaw IMAGE openclaw onboard
# 按向导完成:选择模型 → 配置 API 密钥 → 设置聊天通道
# 2. 配置网关模式
docker run --rm -v openclaw-data:/root/.openclawIMAGE openclaw config set gateway.mode local
# 3. 启动(守护进程模式,容器会一直运行)
docker run -d --name openclaw -p 18789:18789 \
-v openclaw-data:/root/.openclaw --restart unless-stopped \
$IMAGE openclaw gateway run
# 国内用户使用 Docker Hub 镜像
IMAGE=1186258278/openclaw-zh:latest
# 海外用户使用: IMAGE=ghcr.io/1186258278/openclaw-zh:latest
# 1. 初始化(首次运行)
# Docker 需要交互式运行来配置 AI 模型和 API 密钥
docker run --rm -it -v openclaw-data:/root/.openclaw IMAGE openclaw onboard
# 按向导完成:选择模型 → 配置 API 密钥 → 设置聊天通道
# 2. 配置网关模式
docker run --rm -v openclaw-data:/root/.openclawIMAGE openclaw config set gateway.mode local
# 3. 启动(守护进程模式,容器会一直运行)
docker run -d --name openclaw -p 18789:18789 \
-v openclaw-data:/root/.openclaw --restart unless-stopped \
$IMAGE openclaw gateway run
# 在已运行的 openclaw 容器中执行 status 命令
docker exec openclaw openclaw status
docker exec openclaw openclaw dashboard
# 使用 -it 参数重新进入交互模式
docker exec -it openclaw openclaw onboard
# 需要在服务器命令行中配对
docker exec openclaw openclaw pairing approve feishu <ZMJMxxx>
参考:
https://www.cnblogs.com/catchadmin/p/19592309
https://zhuanlan.zhihu.com/p/2011924690973767058
https://github.com/1186258278/OpenClawChineseTranslation