summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorb0wter <b0wter@gmx.de>2023-04-23 23:13:15 +0200
committerzachir <zachir@librem.one>2023-10-19 08:22:37 -0500
commit7bd0c135b2c1c02251eebf35ddabfe0d24c977a8 (patch)
tree0ed809040fde10d51ac7534bec9805b507d62ead
parent9e045ecc30bf36f9236075a1b9501042deba795e (diff)
Made search for `Created` stricter to not cause accidental matches
-rw-r--r--docker-widget/docker.lua2
1 files changed, 1 insertions, 1 deletions
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'