fix: documentation image loading issue

This commit is contained in:
dqzboy
2025-04-26 16:25:33 +08:00
parent bc37650555
commit aae122a352
4 changed files with 49 additions and 112 deletions

View File

@@ -191,29 +191,35 @@ docker pull gcr.your_domain_name/google-containers/pause:3.1
> [Self-built Docker Image Acceleration Service: Accelerating and Optimizing Image Management](https://www.dqzboy.com/8709.html) <br> > [Self-built Docker Image Acceleration Service: Accelerating and Optimizing Image Management](https://www.dqzboy.com/8709.html) <br>
> [Build your own Docker image acceleration, and host the domain name to CF to accelerate image pulling.](https://www.dqzboy.com/17665.html) > [Build your own Docker image acceleration, and host the domain name to CF to accelerate image pulling.](https://www.dqzboy.com/17665.html)
## 📚 Display
<br/>
<table>
<tr>
<td width="50%" align="center"><b>System Environment Check</b></td>
<td width="50%" align="center"><b>Service Deployment and Installation</b></td>
</tr>
<tr>
<td width="50%" align="center"><img src="https://github.com/dqzboy/Docker-Proxy/assets/42825450/55df7f6f-c788-4200-9bcd-631998dc53ef?raw=true"></td>
<td width="50%" align="center"><img src=https://github.com/dqzboy/Docker-Proxy/assets/42825450/c544fb1e-ecd5-447c-9661-0c5913586118?raw=true"></td>
</tr>
</table>
## 💻 UI ## 💻 Hubcmd-UI
> HubCMD-UI Manual Installation Guide: [View Tutorial](hubcmdui/README.md)
<br/> <br/>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><b>Docker Registry UI</b></td> <td width="50%" align="center"><b>镜像加速</b></td>
<td width="50%" align="center"><b>Docker-Proxy CmdUI</b></td> <td width="50%" align="center"><b>镜像搜索</b></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/dqzboy/Docker-Proxy/assets/42825450/0ddb041b-64f6-4d93-b5bf-85ad3b53d0e0?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_01.png?raw=true"></td>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/c7e368ca-7f1a-4311-9a10-a5f4f06d86d8?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_02.png?raw=true"></td>
</tr>
<tr>
<td width="50%" align="center"><b>文档管理</b></td>
<td width="50%" align="center"><b>TAG搜索</b></td>
</tr>
<tr>
<td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_03.png?raw=true"></td>
<td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_11.png?raw=true"></td>
</tr>
<tr>
<td width="50%" align="center"><b>控制面板</b></td>
<td width="50%" align="center"><b>容器管理</b></td>
</tr>
<tr>
<td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_07.png?raw=true"></td>
<td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_09.png?raw=true"></td>
</tr> </tr>
</table> </table>

View File

@@ -61,7 +61,7 @@
> **部署过程中出现的问题或者疑问,请点击这里 [问题总结](Issue/issue.md),查看是否有你遇到的情况!尝试先自己解决。** > **部署过程中出现的问题或者疑问,请点击这里 [问题总结](Issue/issue.md),查看是否有你遇到的情况!尝试先自己解决。**
<a href="https://dqzboy.github.io/proxyui/racknerd" target="_blank"> <a href="https://dqzboy.github.io/proxyui/racknerd" target="_blank">
<img src="https://github.com/user-attachments/assets/88f7dd6c-cb5e-4fdb-ba6b-d882d39cba8c" alt="高性价比海外 VPS 推荐" title="点击查看"> <img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/render-vps.png" alt="高性价比海外 VPS 推荐" title="点击查看">
</a> </a>
--- ---
@@ -196,24 +196,24 @@ docker logs -f [容器ID或名称]
<td width="50%" align="center"><b>镜像搜索</b></td> <td width="50%" align="center"><b>镜像搜索</b></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/e8852bfb-8bda-4dee-805e-a93419aa54ab"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_01.png?raw=true"></td>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/b3a6a80a-284c-4117-b1bf-9d4c4556717f"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_02.png?raw=true"></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><b>文档管理</b></td> <td width="50%" align="center"><b>文档管理</b></td>
<td width="50%" align="center"><b>TAG搜索</b></td> <td width="50%" align="center"><b>TAG搜索</b></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/66be3dae-8d46-4144-932e-c5493c93fe2f"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_03.png?raw=true"></td>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/f1208858-ec69-47b3-88d2-9a0bc112ea94"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_11.png?raw=true"></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><b>控制面板</b></td> <td width="50%" align="center"><b>控制面板</b></td>
<td width="50%" align="center"><b>容器管理</b></td> <td width="50%" align="center"><b>容器管理</b></td>
</tr> </tr>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/bc066047-15d3-45fc-b363-ded37bfe1121"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_07.png?raw=true"></td>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/78ad0e29-abfd-47d6-a132-c5b49b48bc95"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_09.png?raw=true"></td>
</tr> </tr>
</table> </table>

View File

@@ -23,18 +23,18 @@
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/80f03947-96bb-47ff-b8f6-65a2dda61b21?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-01.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/275d80bb-e8fc-44bf-bd40-98617cad3e96?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-02.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/acbfc1da-e53f-4e7e-a2cd-d3ae7bff3b57?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-03.png?raw=true"></td>
</tr> </tr>
</table> </table>
@@ -42,13 +42,13 @@
**2. 创建服务** **2. 创建服务**
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/d07514f9-d1dd-4975-b900-e298b734ef53?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-04.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/cfedc35c-3cba-40e7-b710-4b83013bce1a?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-05.png?raw=true"></td>
</tr> </tr>
</table> </table>
@@ -68,20 +68,20 @@
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/e79f5978-a189-4bf3-a5c6-fd9eefdc3098?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-06.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/e8658d59-0416-4a0d-be85-4cd604166661?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-07.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/ef631315-0b4f-44ee-b272-fe82ebf7c54b?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-08.png?raw=true"></td>
</tr> </tr>
</table> </table>
@@ -89,7 +89,7 @@
**4. 服务运行完成之后,等待一些时间后,使用外网域名进行访问,显示空白页面即表示正常** **4. 服务运行完成之后,等待一些时间后,使用外网域名进行访问,显示空白页面即表示正常**
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/6d1e5cdd-7e91-406b-ae92-b164fd5ae378?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/clawcloud-09.png?raw=true"></td>
</tr> </tr>
</table> </table>

View File

@@ -26,75 +26,6 @@
--- ---
## 🔧 日志系统说明
本项目实现了生产级别的日志系统,支持以下特性:
### 日志级别
支持的日志级别从低到高依次为:
- `TRACE`: 最详细的追踪信息,用于开发调试
- `DEBUG`: 调试信息,包含详细的程序执行流程
- `INFO`: 一般信息,默认级别
- `SUCCESS`: 成功信息,通常用于标记重要操作的成功完成
- `WARN`: 警告信息,表示潜在的问题
- `ERROR`: 错误信息,表示操作失败但程序仍可继续运行
- `FATAL`: 致命错误,通常会导致程序退出
### 环境变量配置
可通过环境变量调整日志行为:
```bash
# 设置日志级别
export LOG_LEVEL=INFO # 可选值: TRACE, DEBUG, INFO, SUCCESS, WARN, ERROR, FATAL
# 启用简化日志输出(减少浏览器请求详细信息)
export SIMPLE_LOGS=true
# 启用详细日志记录(包含请求体、查询参数等)
export DETAILED_LOGS=true
# 启用错误堆栈跟踪
export SHOW_STACK=true
# 禁用文件日志记录
export LOG_FILE_ENABLED=false
# 禁用控制台日志输出
export LOG_CONSOLE_ENABLED=false
# 设置日志文件大小上限(MB)
export LOG_MAX_SIZE=10
# 设置保留的日志文件数量
export LOG_MAX_FILES=14
```
### Docker运行时配置
使用Docker运行时可以通过环境变量传递配置
```bash
docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-p 30080:3000 \
-e LOG_LEVEL=INFO \
-e SIMPLE_LOGS=true \
-e LOG_MAX_FILES=7 \
--name hubcmdui-server \
dqzboy/hubcmd-ui
```
### 日志文件轮转
系统自动实现日志文件轮转:
- 单个日志文件超过设定大小(默认10MB)会自动创建新文件
- 自动保留指定数量(默认14个)的最新日志文件
- 日志文件存储在`logs`目录下,格式为`app-YYYY-MM-DD.log`
---
## 📝 源码构建运行 ## 📝 源码构建运行
#### 1. 克隆项目 #### 1. 克隆项目
```bash ```bash
@@ -148,31 +79,31 @@ docker logs -f [容器ID或名称]
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/bfe09d99-6727-43bc-9c2d-73e34d881953"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_01.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/42c4337e-44cb-4c35-bc6f-a5d21f3d1184"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_02.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/c1e938dc-d604-475c-8689-d60b09329af8"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_03.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/1be671e5-7bd5-4d63-9f4e-8936b819ee2d"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_04.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/f97a0a37-457f-4ffb-893e-db68b204ee33"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_05.png?raw=true"></td>
</tr> </tr>
</table> </table>
@@ -180,31 +111,31 @@ docker logs -f [容器ID或名称]
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/85a0c746-d44a-4168-8b4b-a1e7273cdd59"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_06.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/bc066047-15d3-45fc-b363-ded37bfe1121"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_07.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/c775abbe-0927-4a1f-b4e6-faf531784aea"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_08.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/78ad0e29-abfd-47d6-a132-c5b49b48bc95"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_09.png?raw=true"></td>
</tr> </tr>
</table> </table>
<table> <table>
<tr> <tr>
<td width="50%" align="center"><img src="https://github.com/user-attachments/assets/bfe99dc9-ecb8-4c47-9f68-2312e447f309"?raw=true"></td> <td width="50%" align="center"><img src="https://cdn.jsdelivr.net/gh/dqzboy/Images/dqzboy-proxy/hubcmd-ui_10.png?raw=true"></td>
</tr> </tr>
</table> </table>