From 5558c015f6699c9da47d1cb871318c23dedd4919 Mon Sep 17 00:00:00 2001 From: lestermfp Date: Sun, 18 Jun 2023 19:30:53 +0300 Subject: [PATCH] Short-term fix for docker container detection https://github.com/htop-dev/htop/issues/1223 --- linux/Platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux/Platform.c b/linux/Platform.c index 693044af1..e0b633ba1 100644 --- a/linux/Platform.c +++ b/linux/Platform.c @@ -1067,7 +1067,7 @@ bool Platform_init(void) { char lineBuffer[256]; while (fgets(lineBuffer, sizeof(lineBuffer), fd)) { // detect lxc or overlayfs and guess that this means we are running containerized - if (String_startsWith(lineBuffer, "lxcfs /proc") || String_startsWith(lineBuffer, "overlay ")) { + if (String_startsWith(lineBuffer, "lxcfs /proc") || String_startsWith(lineBuffer, "overlay / overlay")) { Running_containerized = true; break; }