From 3e94fcf1f85474084c86b98956dde8257c98b2d2 Mon Sep 17 00:00:00 2001 From: Ajit Kumar Date: Wed, 14 Jun 2017 16:50:41 -0700 Subject: [PATCH] Add rule for docker image pull error --- config/docker-monitor-filelog.json | 8 +++++++- config/docker-monitor.json | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/config/docker-monitor-filelog.json b/config/docker-monitor-filelog.json index 349b7adce..4bb57e7e2 100644 --- a/config/docker-monitor-filelog.json +++ b/config/docker-monitor-filelog.json @@ -10,5 +10,11 @@ "bufferSize": 10, "source": "docker-monitor", "conditions": [], - "rules": [] + "rules": [ + { + "type": "permanent", + "reason": "CorruptDockerImage", + "pattern": "container start failed: ErrImagePull: (.+): directory not empty" + } + ] } diff --git a/config/docker-monitor.json b/config/docker-monitor.json index 226e555cf..41bec07f9 100644 --- a/config/docker-monitor.json +++ b/config/docker-monitor.json @@ -8,5 +8,11 @@ "bufferSize": 10, "source": "docker-monitor", "conditions": [], - "rules": [] + "rules": [ + { + "type": "permanent", + "reason": "CorruptDockerImage", + "pattern": "container start failed: ErrImagePull: (.+): directory not empty" + } + ] }