Files
AIclinicalresearch/配置Docker镜像加速器.md
AI Clinical Dev Team 9acbb0ae2b feat: complete Dify platform deployment (Day 18)
## Dify 閮ㄧ讲瀹屾垚 鉁?
### 瀹屾垚鐨勫伐浣?1. Docker 闀滃儚鍔犻€熷櫒閰嶇疆
   - 閰嶇疆 5 涓浗鍐呴暅鍍忔簮
   - 澶у箙鎻愬崌涓嬭浇閫熷害鍜屾垚鍔熺巼

2. Dify 闀滃儚鎷夊彇 (鍏?11 涓湇鍔?
   - langgenius/dify-api:1.9.1
   - langgenius/dify-web:1.9.1
   - postgres, redis, weaviate, nginx 绛?   - 鎬诲ぇ灏忕害 2GB锛岃€楁椂绾?15 鍒嗛挓

3. Dify 鏈嶅姟鍚姩
   - 鉁?nginx (80/443)
   - 鉁?api, worker, worker_beat
   - 鉁?web (3000)
   - 鉁?db (PostgreSQL), redis
   - 鉁?weaviate (鍚戦噺鏁版嵁搴?
   - 鉁?sandbox, plugin_daemon, ssrf_proxy

4. Dify 鍒濆鍖栭厤缃?   - 鍒涘缓绠$悊鍛樿处鍙?   - 鍒涘缓搴旂敤: AI Clinical Research
   - 鑾峰彇 API Key: app-VZRn0vMXdmltEJkvatHVGv5j

5. 鍚庣鐜閰嶇疆
   - DIFY_API_URL=http://localhost/v1
   - DIFY_API_KEY 宸查厤缃?
### 鏂囨。鏇存柊
- 鏂板: docs/05-姣忔棩杩涘害/Day18-Dify閮ㄧ讲瀹屾垚.md
- 鏇存柊: docs/04-寮€鍙戣鍒?寮€鍙戦噷绋嬬.md (Day 18 鏍囪涓哄畬鎴?

### 涓嬩竴姝?Day 19-24: 鐭ヨ瘑搴撶郴缁熷紑鍙?- Dify 瀹㈡埛绔皝瑁?- 鐭ヨ瘑搴撶鐞?CRUD
- 鏂囨。涓婁紶涓庡鐞?- @鐭ヨ瘑搴撻泦鎴?- RAG 闂瓟楠岃瘉

---
Progress: 閲岀▼纰?1 (MVP) 85% -> 鐭ヨ瘑搴撶郴缁熷紑鍙戜腑
2025-10-11 08:58:41 +08:00

112 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Docker 镜像加速器配置指南
## 📋 操作步骤
### 1. 打开Docker Desktop设置
1. 在系统托盘找到 **Docker Desktop** 图标(鲸鱼图标)
2. **右键点击** → 选择 **Settings** (设置)
### 2. 进入Docker Engine配置
1. 在左侧菜单中点击 **Docker Engine**
2. 您会看到一个JSON配置编辑器
### 3. 添加镜像加速器配置
在JSON配置中添加 `registry-mirrors` 配置项:
**如果配置为空**,替换为:
```json
{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://registry.docker-cn.com"
]
}
```
**如果已有配置**,在现有配置中添加 `registry-mirrors` 部分:
```json
{
"现有配置项...": "...",
"registry-mirrors": [
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://registry.docker-cn.com"
]
}
```
### 4. 应用并重启
1. 点击右下角的 **Apply & restart** 按钮
2. 等待Docker Desktop重启约30秒-1分钟
3. 确认Docker Desktop状态变为 "Running"(绿色)
### 5. 验证配置
打开PowerShell运行
```powershell
docker info | Select-String -Pattern "Registry Mirrors"
```
应该看到类似输出:
```
Registry Mirrors:
https://docker.mirrors.ustc.edu.cn/
https://hub-mirror.c.163.com/
https://registry.docker-cn.com/
```
---
## ✅ 完成配置后
配置完成后请回到终端我们将继续部署Dify。
---
## 🔧 备选镜像源
如果上述镜像源仍然有问题,可以尝试其他国内镜像源:
```json
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://mirror.baidubce.com",
"https://docker.m.daocloud.io"
]
}
```
---
## 📞 故障排查
### 问题1Docker Desktop无法重启
- 完全关闭Docker Desktop
- 在任务管理器中结束所有Docker相关进程
- 重新启动Docker Desktop
### 问题2配置后仍无法拉取镜像
- 检查网络连接
- 尝试使用备选镜像源
- 考虑使用VPN如有
---
**完成配置后,请在终端告诉我,我们将继续下一步!**