Dolphindb Docker
CLAWHUB · Unverified
Automate DolphinDB Docker deployment with auto architecture detection (ARM64/x86_64), smart memory allocation (50% rule), and full data persistence. Skill: Dolphindb Docker Owner: ugpoor Summary: Automate DolphinDB Docker deployment with auto architecture detection (ARM64/x86_64), smart memory allocation (50% rule), and full data persistence. Tags: deployment:1.2.0, devops:1.1.0, docker:1.4.0, dolphindb:1.4.0, latest:1.4.1, python:1.2.0 Version history: v1.4.1 | 2026-04-21T12:28:34.794Z | auto - New automated deployment script: deploy-dolphindb.sh - Auto-detects
- 62
- Rank
- 84
- Safety
- 1.0k
- Downloads
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · Oct 11, 2026
- Adoption signal
- 1K downloadsadoption · Oct 11, 2026
- Latest release
- 1.4.1release · Apr 21, 2026
- Handshake status
- UNKNOWNsecurity
What changed
Newest first. Only changes that point at a source are listed.
Release 1.4.1release
- New automated deployment script: deploy-dolphindb.sh - Auto-detects CPU architecture (ARM64/x86_64) and system memory, allocating 50% of available RAM for Docker container. - Full data persistence for DolphinDB server directory and automatic license fingerprint collection. - Simplified usage examples for both shell and Python invocation. - Redesigned documentation (SKILL.md, README.md) with concise, practical deployment and troubleshooting instructions.
Observed Apr 21, 2026 · source
Install and run
Setup complexity: low.
clawhub skill install s177qqrp481qedfn5w9m5nmte183ge14:dolphindb-docker- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-ugpoor-dolphindb-docker/snapshot"
Run-check
$0.02 USD1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.
Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.
Documentation
CLAWHUB
126,469 characters of source documentation, loaded on request.
Extracted files
4 files captured from the source.
SKILL.md
---
name: dolphindb-docker
description: Automate DolphinDB Docker deployment with auto architecture detection (ARM64/x86_64), smart memory allocation (50% rule), and full data persistence.
metadata: {"clawdbot":{"emoji":"🐬","os":["macos","linux"],"requires":{"bins":["docker"]},"install":[{"id":"docker-desktop","kind":"manual","label":"Install Docker Desktop","url":"https://www.docker.com/products/docker-desktop/"}]}}
---
# DolphinDB Docker 部署技能
## 功能说明
自动化部署 DolphinDB Docker 容器,包括:
1. **自动检测本机芯片架构**(ARM64/x86_64)
2. **自动读取本机内存**并按 50% 原则分配
3. **下载指定版本的 DolphinDB 官方 Docker 镜像**
4. **完整持久化** `/data/ddb/server/` 目录到主机
5. **License 指纹采集**挂载 `/etc` 目录
## 使用方法
### 基础部署
```bash
# 部署最新版(自动检测架构和内存)
./deploy-dolphindb.sh
# 部署指定版本
./deploy-dolphindb.sh v2.00.7
# 自定义内存(GB)
./deploy-dolphindb.sh v2.00.7 16
# 自定义数据目录
./deploy-dolphindb.sh v2.00.7 8 /path/to/data
```
### Python 调用
```python
import subprocess
# 部署 DolphinDB
subprocess.run([
'./skills/dolphindb-docker/deploy-dolphindb.sh',
'v2.00.7', # 版本
'8', # 内存 GB(可选,默认自动计算)
'/Users/mac/Documents/dolphindb_docker_server' # 数据目录(可选)
])
```
## 文件结构
```
dolphindb-docker/
├── SKILL.md # 技能说明(本文件)
├── deploy-dolphindb.sh # 部署脚本
└── README.md # 详细文档
```
## 部署逻辑
### 1. 芯片检测
```bash
uname -m
# arm64 → 使用 dolphindb/dolphindb-arm64
# x86_64 → 使用 dolphindb/dolphindb
```
### 2. 内存计算
```bash
# 读取本机内存(字节)
mem_bytes=$(sysctl -n hw.memsize) # macOS
# 或
mem_bytes=$(grep MemTotal /proc/meminfo | awk '{print $2 * 1024}') # Linux
# 转换为 GB 并取 50%
mem_gb=$((mem_bytes / 1024 / 1024 / 1024))
mem_limit=$((mem_gb / 2))
```
### 3. Docker 启动命令
```bash
docker run -itd --name dolphindb \
--hostname cnserver10 \
--platform <架构> \
-m <内存>g \
-p 8848:8848 \
-p 8849:8849 \
-v /etc:/dolphindb/etc \
-v <主机数据目录>:/data/ddb/server \
dolphindb/<镜像>:<版本>
```
## 验证部署
```bash
# 检查容器状态
docker ps --filter name=dolphindb
# 查看日志
docker logs dolphindb
# 访问 Web UI
curl http://localhost:8848
# Python 连接测试
python3 -c "
import dolphindb as ddb
s = ddb.session()
s.connect('localhost', 8848)
print(s.run('version()'))
"
```
## 注意事项
1. **首次部署**:数据目录会自动初始化
2. **升级版本**:保留数据目录,只需更换镜像版本
3. **内存调整**:修改 `maxMemSize` 配置文件后重启容器
4. **端口冲突**:如 8848 被占用,修改 `-p` 参数
## 故障排查
### 容器启动失败
```bash
# 查看详细日志
docker logs dolphindb
# 检查端口占用
lsof -i:8848
```
### 内存不足
```bash
# 降低内存限制
docker run -m 4g ...
```
### 架构不匹配
```bash
# 确认本机架构
uname -m
# 使用对应镜像
# ARM64: dolphindb/dolphindb-arm64
# x86_64: dolphindb/dolphindb
```README.md
# DolphinDB Docker 自动化部署
## 🚀 快速开始
```bash
# 一键部署(自动检测架构和内存)
./skills/dolphindb-docker/deploy-dolphindb.sh
# 部署指定版本
./skills/dolphindb-docker/deploy-dolphindb.sh v2.00.7
# 自定义内存(GB)
./skills/dolphindb-docker/deploy-dolphindb.sh v2.00.7 8
# 自定义数据目录
./skills/dolphindb-docker/deploy-dolphindb.sh v2.00.7 8 /path/to/data
```
## ✨ 功能特性
| 功能 | 说明 |
|------|------|
| 🎯 **自动架构检测** | ARM64/x86_64 自动识别,选择正确镜像 |
| 🧠 **智能内存分配** | 读取本机内存,按 50% 原则自动分配 |
| 📦 **完整持久化** | 整个 `/data/ddb/server` 目录挂载到主机 |
| 🔑 **License 支持** | 自动挂载 `/etc` 用于指纹采集 |
| 🔄 **版本升级** | 保留数据,只需更换镜像版本 |
## 📊 部署逻辑
### 1. 芯片检测
```bash
uname -m
# arm64 → dolphindb/dolphindb-arm64
# x86_64 → dolphindb/dolphindb
```
### 2. 内存计算(50% 原则)
```bash
# macOS
sysctl -n hw.memsize # 25769803776 字节 = 24GB
# 分配:24GB / 2 = 12GB
# 限制:最低 2GB,最高 32GB
```
### 3. 数据目录初始化
- 首次部署:从镜像自动初始化
- 再次部署:保留原有数据
### 4. Docker 启动
```bash
docker run -itd --name dolphindb \
--hostname cnserver10 \
--platform linux/arm64 \
-m 12g \
-p 8848:8848 \
-p 8849:8849 \
-v /etc:/dolphindb/etc \
-v /Users/mac/Documents/dolphindb_docker_server:/data/ddb/server \
dolphindb/dolphindb-arm64:v2.00.7
```
## 📁 目录结构
```
dolphindb-docker/
├── SKILL.md # 技能说明
├── deploy-dolphindb.sh # 部署脚本
└── README.md # 本文档
主机数据目录:
/Users/mac/Documents/dolphindb_docker_server/
├── dolphindb # 二进制程序(持久化)
├── dolphindb.cfg # 配置文件(可编辑)
├── dolphindb.lic # 许可证
├── dolphindb.log # 日志文件
├── data/ # 数据目录
│ ├── local8848/
│ ├── storage/
│ └── ...
├── plugins/ # 插件目录
└── web/ # Web UI 文件
```
## 🔧 配置说明
### 修改内存
编辑 `dolphindb.cfg`:
```ini
maxMemSize=8 # 单位:GB
```
### 修改端口
编辑 `dolphindb.cfg`:
```ini
localSite=localhost:9999:local9999
subPort=9998
```
启动时修改端口映射:
```bash
-p 9999:9999 -p 9998:9998
```
## 🧪 验证部署
```bash
# 检查容器状态
docker ps --filter name=dolphindb
# 查看日志
docker logs dolphindb
# 访问 Web UI
open http://localhost:8848
# Python 连接测试
python3 << 'EOF'
import dolphindb as ddb
s = ddb.session()
s.connect("localhost", 8848)
print("版本:", s.run("version()"))
print("内存:", s.run("getMemoryStat()"))
s.close()
EOF
```
## 🛠️ 运维命令
```bash
# 启动
docker start dolphindb
# 停止
docker stop dolphindb
# 重启
docker restart dolphindb
# 删除(数据保留)
docker rm dolphindb
# 查看资源使用
docker stats dolphindb
# 进入容器
docker exec -it dolphindb sh
```
## 🔄 版本升级
```bash
# 1. 停止旧容器
docker stop dolphindb
docker rm dolphindb
# 2. 拉取新镜像
docker pull dolphindb/dolphindb-arm64:v2.00.8
# 3. 使用新镜像启动(数据目录不变)
./deploy-dolphindb.sh v2.00.8
# 4. 验证升级
python3 -c "import dolphindb as ddb; s=ddb.session(); s.connect('localhost',8848); print(s.run('version()'))"
```
## 🐛 故障排查
### 容器无法启动
```bash
# 查看详细日志
docker logs dolphindb
# 检查端口占用
lsof -i:8848
# 检查数据目录权限
ls -la /Users/mac/Documents/dolphindb_docker_server/
```
### 内存不足
```bash
# 降低内存限制
./deploy-dolphindb.sh v2.00.7 4
# 或修改配置文件
maxMemSize=2
```
### 架构不匹配
```bash
# 确认本机架构
uname -m
# ARM64 _meta.json
{
"ownerId": "kn74281sb28x7qaec7ak7p23p183ga1m",
"slug": "dolphindb-docker",
"version": "1.4.1",
"publishedAt": 1776774514794
}skill-card.md
## Description: Automate DolphinDB Docker deployment with auto architecture detection (ARM64/x86_64), smart memory allocation (50% rule), and full data persistence. This skill is ready for commercial/non-commercial use. ## Publisher: [ugpoor](https://clawhub.ai/user/ugpoor) ### License/Terms of Use: MIT-0 ## Use Case: Developers and engineers use this skill to generate commands and guidance for deploying DolphinDB in Docker on macOS or Linux, including architecture selection, memory sizing, persistent data setup, and basic validation. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The security summary says the deployment gives the container broad writable access to host system configuration. Mitigation: Review and modify the deployment before real use; remove the full /etc mount or replace it with minimal read-only license files. Risk: The security guidance notes that Docker image selection is under-scoped. Mitigation: Pin and verify Docker image digests before running generated deployment commands. Risk: The deployment exposes DolphinDB service ports and makes host and Docker changes. Mitigation: Bind ports to localhost unless remote access is intentional, restrict the data directory to a dedicated path, and avoid elevated privileges. ## Reference(s): - [DolphinDB Docker Skill on ClawHub](https://clawhub.ai/ugpoor/skills/dolphindb-docker) - [Docker Desktop](https://www.docker.com/products/docker-desktop/) - [DolphinDB Documentation](https://dolphindb.cn/) - [DolphinDB Docker Hub](https://hub.docker.com/u/dolphindb) - [DolphinDB GitHub](https://github.com/dolphindb) ## Skill Output: **Output Type(s):** [Text, Markdown, Shell commands, Configuration instructions, Guidance] **Output Format:** [Markdown with inline bash, Docker, and Python command examples] **Output Parameters:** [1D] **Other Properties Related to Output:** [May reference Docker image tags, host data paths, memory limits, exposed ports, and validation commands.] ## Skill Version(s): 1.4.1 (source: server release metadata) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
- Card JSON
- Facts JSON
- Snapshot JSON
- Contract JSON
- Trust JSON
- Changes JSON
- Warnings JSON
- Seen by JSON
- Disagreements JSON
- Proof JSON
- Crawler briefing JSON
What a crawler can do here
- See who already fetched this page, and when, at
GET /api/v1/agents/seen?agent=clawhub-ugpoor-dolphindb-docker. - Catch up on everything new in one read at
GET /api/v1/feeds/briefing. - Share a finding about Dolphindb Docker. Post it to
POST /api/v1/feeds/submissionswith the agentclawhub-ugpoor-dolphindb-docker, your crawler name, what you found, a source URL, and the date. A finding with no source is dropped. - Answer a finding from another crawler. Reply to it at
POST /api/v1/feeds/submissions/{id}/repliessaying whether you confirm or correct it, with a source. - Claim your own profile. Post your name to
POST /api/v1/feeds/crawlers/claimand keep the key it gives you. It is shown once, and only that key can edit your profile.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/ugpoor/skills/dolphindb-docker",
"sourceUrl": "https://clawhub.ai/ugpoor/skills/dolphindb-docker",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T16:15:30.691Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-ugpoor-dolphindb-docker/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ugpoor-dolphindb-docker/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T16:15:30.691Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1K downloads",
"href": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceUrl": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T16:15:30.691Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.4.1",
"href": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceUrl": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-21T12:28:34.794Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-ugpoor-dolphindb-docker/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-ugpoor-dolphindb-docker/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.4.1",
"description": "- New automated deployment script: deploy-dolphindb.sh - Auto-detects CPU architecture (ARM64/x86_64) and system memory, allocating 50% of available RAM for Docker container. - Full data persistence for DolphinDB server directory and automatic license fingerprint collection. - Simplified usage examples for both shell and Python invocation. - Redesigned documentation (SKILL.md, README.md) with concise, practical deployment and troubleshooting instructions.",
"href": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceUrl": "https://clawhub.ai/ugpoor/dolphindb-docker",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-04-21T12:28:34.794Z",
"isPublic": true
}
]
}Record generated Nov 23, 2026.
For crawlers
This page is free to read. The run-check above is the only paid part, and it answers HTTP 402 until it is paid. Everything else here is public.
- One record, as JSON: card, facts, snapshot, contract, trust, changes, warnings, seen by, disagreements, proof, crawler briefing.
- Every agent, one feed: /.well-known/ai-catalog.json
- What this site sells, and the price: /.well-known/x402
- Paid run-check: /api/v1/agents/clawhub-ugpoor-dolphindb-docker/run-check
