Spaces:
Paused
Paused
Commit
·
48a86ab
1
Parent(s):
206d31e
Auto-commit: docker-commands.md updated
Browse files- docker-commands.md +45 -0
docker-commands.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# OpenManus Docker Commands
|
| 2 |
+
# Build and run the OpenManus platform locally
|
| 3 |
+
|
| 4 |
+
# 1. Build the Docker image locally
|
| 5 |
+
docker build -t openmanus-local .
|
| 6 |
+
|
| 7 |
+
# 2. Run the container locally (recommended)
|
| 8 |
+
docker run -it -p 7860:7860 --platform=linux/amd64 openmanus-local
|
| 9 |
+
|
| 10 |
+
# 3. Run with environment variables (for Cloudflare integration)
|
| 11 |
+
docker run -it -p 7860:7860 --platform=linux/amd64 \
|
| 12 |
+
-e CLOUDFLARE_API_TOKEN="your-token" \
|
| 13 |
+
-e CLOUDFLARE_ACCOUNT_ID="your-account-id" \
|
| 14 |
+
-e CLOUDFLARE_D1_DATABASE_ID="your-d1-id" \
|
| 15 |
+
-e CLOUDFLARE_R2_BUCKET_NAME="your-r2-bucket" \
|
| 16 |
+
-e CLOUDFLARE_KV_NAMESPACE_ID="your-kv-id" \
|
| 17 |
+
-e CLOUDFLARE_DURABLE_OBJECTS_ID="your-durable-objects-id" \
|
| 18 |
+
openmanus-local
|
| 19 |
+
|
| 20 |
+
# 4. Run with volume mounts (for persistent data)
|
| 21 |
+
docker run -it -p 7860:7860 --platform=linux/amd64 \
|
| 22 |
+
-v "${PWD}/data:/home/user/app/data" \
|
| 23 |
+
-v "${PWD}/logs:/home/user/app/logs" \
|
| 24 |
+
openmanus-local
|
| 25 |
+
|
| 26 |
+
# 5. Run in background (daemon mode)
|
| 27 |
+
docker run -d -p 7860:7860 --platform=linux/amd64 --name openmanus openmanus-local
|
| 28 |
+
|
| 29 |
+
# 6. Run from HuggingFace registry (your current command corrected)
|
| 30 |
+
docker run -it -p 7860:7860 --platform=linux/amd64 \
|
| 31 |
+
registry.hf.space/speedofmastery-agnt:latest
|
| 32 |
+
|
| 33 |
+
# 7. Debug mode with shell access
|
| 34 |
+
docker run -it --platform=linux/amd64 openmanus-local /bin/bash
|
| 35 |
+
|
| 36 |
+
# 8. Check running containers
|
| 37 |
+
docker ps
|
| 38 |
+
|
| 39 |
+
# 9. Stop the container
|
| 40 |
+
docker stop openmanus
|
| 41 |
+
|
| 42 |
+
# 10. Remove the container
|
| 43 |
+
docker rm openmanus
|
| 44 |
+
|
| 45 |
+
# Access the platform at: http://localhost:7860
|