Skip to content

Commit 19750bc

Browse files
authored
Merge pull request #122 from ajitak/cherrypick-#117-v0.4
Add a new rule which catches docker image corruption (cherrypick #117 to v0.4)
2 parents f076eaf + 2155591 commit 19750bc

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

config/docker-monitor-filelog.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,11 @@
1010
"bufferSize": 10,
1111
"source": "docker-monitor",
1212
"conditions": [],
13-
"rules": []
13+
"rules": [
14+
{
15+
"type": "temporary",
16+
"reason": "CorruptDockerImage",
17+
"pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*"
18+
}
19+
]
1420
}

config/docker-monitor.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,11 @@
88
"bufferSize": 10,
99
"source": "docker-monitor",
1010
"conditions": [],
11-
"rules": []
11+
"rules": [
12+
{
13+
"type": "temporary",
14+
"reason": "CorruptDockerImage",
15+
"pattern": "Error trying v2 registry: failed to register layer: rename /var/lib/docker/image/(.+) /var/lib/docker/image/(.+): directory not empty.*"
16+
}
17+
]
1218
}

0 commit comments

Comments
 (0)