2026年Docker安装OpenClaw[项目源码]

Docker安装OpenClaw[项目源码]lt DOCTYPE html gt lt html lang zh CN data theme light gt lt head gt lt meta charset UTF 8 gt

大家好,我是讯享网,很高兴认识大家。这里提供最前沿的Ai技术和互联网信息。



 
  
    
     
      
      OpenClaw Docker 安装指南 
       
       
        
      
     
    

 
  
    
     
  
    
     
  
    
     
  
    
    

OpenClaw

使用 Docker 快速部署 AI 助手平台

支持 Qwen、Claude、GPT 等多种模型提供商

安装步骤

步骤 1

创建目录

创建工作目录

mkdir openclaw 

cd openclaw

 
  
    
     
  
    
    
步骤 2

下载配置文件

获取 docker-compose.yml

wget https://gh-proxy.com/https://raw.githubusercontent.com/openclaw/openclaw/main/docker-compose.yml
步骤 3

下载环境变量

获取 .env.example

wget https://gh-proxy.com/https://raw.githubusercontent.com/openclaw/openclaw/main/.env.example
步骤 4

配置环境

生成 Token 并配置

cp .env.example .env 

sed -i "s/OPENCLAW_GATEWAY_TOKEN=change-me-to-a-long-random-token/OPENCLAW_GATEWAY_TOKEN=$(openssl rand -hex 32)/g" .env

 
  
    
      
 
   
   
步骤 5

创建配置目录

设置权限和配置文件

mkdir -p ./config/workspace 

chown -R 1000:1000 ./config

 
  
    
     
  
    
    
步骤 6

启动容器

运行 Docker Compose

docker-compose up -d

🚀 一键安装脚本

使用自动化脚本快速完成所有安装步骤

chmod +x install-openclaw.sh 

./install-openclaw.sh

 
  
    
    
小讯
上一篇 2026-04-11 22:37
下一篇 2026-04-11 22:35

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/257421.html