diff options
author | lestermfp <lester.mfp@gmail.com> | 2023-06-18 19:30:53 +0300 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-07-07 10:03:25 +0200 |
commit | 5558c015f6699c9da47d1cb871318c23dedd4919 (patch) | |
tree | ebc7057573f03f8602e44721e9be46b5fd7e40b3 /linux/Platform.c | |
parent | 37d30a3a7d6c96da018c960d6b6bfe11cc718aa8 (diff) |
Short-term fix for docker container detection
https://github.com/htop-dev/htop/issues/1223
Diffstat (limited to 'linux/Platform.c')
-rw-r--r-- | linux/Platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/Platform.c b/linux/Platform.c index 693044af..e0b633ba 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; } |