mirror of
https://github.com/fankes/komari-agent.git
synced 2025-10-19 02:59:23 +08:00
feat: 增强容器检测
This commit is contained in:
@@ -84,7 +84,9 @@ func detectContainer() string {
|
||||
if s := parseCgroupForContainer(); s != "" {
|
||||
return s
|
||||
}
|
||||
|
||||
if fileExists("/.komari-agent-container") {
|
||||
return "container"
|
||||
}
|
||||
// (Removed mountinfo heuristics which caused host false positives when Docker/Kube tools are installed.)
|
||||
return ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user