From 7bd0c135b2c1c02251eebf35ddabfe0d24c977a8 Mon Sep 17 00:00:00 2001 From: b0wter Date: Sun, 23 Apr 2023 23:13:15 +0200 Subject: Made search for `Created` stricter to not cause accidental matches --- docker-widget/docker.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-widget/docker.lua b/docker-widget/docker.lua index 4bca21c..7724e2c 100644 --- a/docker-widget/docker.lua +++ b/docker-widget/docker.lua @@ -64,7 +64,7 @@ local docker_widget = wibox.widget { local parse_container = function(line) local name, id, image, how_long, size, actual_status - if string.find(line, 'Created') then + if string.find(line, '::Created::') then name, id, image, size = line:match(DOCKER_CREATED_STATUS_PATTERN) actual_status = 'Created' how_long = 'Never started' -- cgit v1.2.3