update readme for docker

This commit is contained in:
Wendong
2025-03-10 11:20:55 +08:00
parent 34d9384a58
commit 5c5306b219
2 changed files with 21 additions and 8 deletions

View File

@@ -147,8 +147,6 @@ cp owl/.env_template .env
## **Running with Docker** ## **Running with Docker**
If you prefer to run the OWL project using Docker, we provide full Docker support:
```bash ```bash
# Clone the repository # Clone the repository
git clone https://github.com/camel-ai/owl.git git clone https://github.com/camel-ai/owl.git
@@ -158,14 +156,22 @@ cd owl
cp owl/.env_template owl/.env cp owl/.env_template owl/.env
# Edit the .env file and fill in your API keys # Edit the .env file and fill in your API keys
# Build and run the Docker container
docker-compose up -d
# Option 1: Using docker-compose directly
cd .container
docker-compose up -d
# Run OWL inside the container # Run OWL inside the container
docker-compose exec owl bash -c "xvfb-python run.py" docker-compose exec owl bash -c "xvfb-python run.py"
# Option 2: Build and run using the provided scripts
cd .container
chmod +x build_docker.sh
./build_docker.sh
# Run OWL inside the container
./run_in_docker.sh "your question"
``` ```
For more detailed Docker usage instructions, including cross-platform support, optimized configurations, and troubleshooting, please refer to [DOCKER_README.md](DOCKER_README_en.md). For more detailed Docker usage instructions, including cross-platform support, optimized configurations, and troubleshooting, please refer to [DOCKER_README.md](.container/DOCKER_README_en.md).
# 🚀 Quick Start # 🚀 Quick Start

View File

@@ -155,14 +155,21 @@ cd owl
cp owl/.env_template owl/.env cp owl/.env_template owl/.env
# 编辑.env文件填入您的API密钥 # 编辑.env文件填入您的API密钥
# 构建并运行Docker容器 # 选项1直接使用docker-compose
cd .container
docker-compose up -d docker-compose up -d
# 在容器中运行OWL # 在容器中运行OWL
docker-compose exec owl bash -c "xvfb-python run.py" docker-compose exec owl bash -c "xvfb-python run.py"
# 选项2使用提供的脚本构建和运行
cd .container
chmod +x build_docker.sh
./build_docker.sh
# 在容器中运行OWL
./run_in_docker.sh "您的问题"
``` ```
更多详细的Docker使用说明包括跨平台支持、优化配置和故障排除请参阅 [DOCKER_README.md](DOCKER_README.md) 更多详细的Docker使用说明包括跨平台支持、优化配置和故障排除请参阅 [DOCKER_README.md](.container/DOCKER_README.md)
# 🚀 快速开始 # 🚀 快速开始