docker-pro-diagnostic
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocker Pro Diagnostic
Docker专业诊断
When a user asks "Why is my container failing?" or "Analyze the logs for [container]", follow these steps:
- Run Extraction: Call .
python3 {{skillDir}}/log_processor.py <container_name> - Analyze: Feed the output (which contains errors and context) into your reasoning engine.
- Report: Summarize the root cause. If it looks like a code error, suggest a fix. If it looks like a resource error (OOM), suggest increasing Docker memory limits.
当用户询问“为什么我的容器失败了?”或“分析[容器]的日志”时,请遵循以下步骤:
- 运行提取: 调用。
python3 {{skillDir}}/log_processor.py <container_name> - 分析: 将包含错误和上下文的输出输入到推理引擎中。
- 报告: 总结根本原因。如果看起来是代码错误,建议修复方案。如果看起来是资源错误(OOM),建议增加Docker内存限制。
Example Command
示例命令
python3 log_processor.py api_gateway_prodpython3 log_processor.py api_gateway_prod