File size: 1,639 Bytes
2f28b62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# OpenManus Docker Commands
# Build and run the OpenManus platform locally

# 1. Build the Docker image locally
docker build -t openmanus-local .

# 2. Run the container locally (recommended)
docker run -it -p 7860:7860 --platform=linux/amd64 openmanus-local

# 3. Run with environment variables (for Cloudflare integration)
docker run -it -p 7860:7860 --platform=linux/amd64 \
  -e CLOUDFLARE_API_TOKEN="your-token" \
  -e CLOUDFLARE_ACCOUNT_ID="your-account-id" \
  -e CLOUDFLARE_D1_DATABASE_ID="your-d1-id" \

  -e CLOUDFLARE_R2_BUCKET_NAME="your-r2-bucket" \
  -e CLOUDFLARE_KV_NAMESPACE_ID="your-kv-id" \

  -e CLOUDFLARE_DURABLE_OBJECTS_ID="your-durable-objects-id" \
  openmanus-local

# 4. Run with volume mounts (for persistent data)
docker run -it -p 7860:7860 --platform=linux/amd64 \
  -v "${PWD}/data:/home/user/app/data" \
  -v "${PWD}/logs:/home/user/app/logs" \
  openmanus-local

# 5. Run in background (daemon mode)
docker run -d -p 7860:7860 --platform=linux/amd64 --name openmanus openmanus-local

# 6. Run from HuggingFace registry - NEW HHH SPACE
docker run -it -p 7860:7860 --platform=linux/amd64 \
  registry.hf.space/speedofmastery-hhh:latest

# 6b. Run from old agnt space (backup)
docker run -it -p 7860:7860 --platform=linux/amd64 \
  registry.hf.space/speedofmastery-agnt:latest

# 7. Debug mode with shell access
docker run -it --platform=linux/amd64 openmanus-local /bin/bash

# 8. Check running containers
docker ps

# 9. Stop the container
docker stop openmanus

# 10. Remove the container
docker rm openmanus

# Access the platform at: http://localhost:7860