Skip to content

Commit 0b31ed9

Browse files
authored
Merge pull request #327 from yguo0905/v0.6
Cherry pick #321 to v0.6: Update the detection method for docker overlay2 issue
2 parents 89ab58b + e9ed821 commit 0b31ed9

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

config/docker-monitor.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,24 @@
77
"lookback": "5m",
88
"bufferSize": 10,
99
"source": "docker-monitor",
10-
"conditions": [],
10+
"conditions": [
11+
{
12+
"type": "CorruptDockerOverlay2",
13+
"reason": "NoCorruptDockerOverlay2",
14+
"message": "docker overlay2 is functioning properly"
15+
}
16+
],
1117
"rules": [
1218
{
1319
"type": "temporary",
1420
"reason": "CorruptDockerImage",
1521
"pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*"
22+
},
23+
{
24+
"type": "permanent",
25+
"condition": "CorruptDockerOverlay2",
26+
"reason": "CorruptDockerOverlay2",
27+
"pattern": "returned error: readlink /var/lib/docker/overlay2.*: invalid argument.*"
1628
}
1729
]
1830
}

0 commit comments

Comments
 (0)