fix: 增加Docker镜像拉取兜底

This commit is contained in:
Nixevol
2026-07-03 02:47:10 +08:00
parent 17285b2e5b
commit 7846a3eb57
5 changed files with 27 additions and 6 deletions
+2
View File
@@ -31,6 +31,8 @@ Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
| `python scripts/docker_build.py` | 构建:生成 .env → 构建前端静态 → 构建 API 镜像 |
| `python scripts/docker_dev.py` | Docker 运行全栈(`--down` 停止,`--logs` 看日志) |
`dev.py` 自动 Docker 模式会先使用官方 `mysql:8.0` / `redis:7-alpine`;如果 Docker Hub 拉取失败,会把当前项目 `.env` 的 `MYSQL_IMAGE` / `REDIS_IMAGE` 切到 1Panel 代理后重试一次,不修改 Docker 全局配置。
常用参数:
```bash