Skip to content

Commit

Permalink
Short-term fix for docker container detection
Browse files Browse the repository at this point in the history
  • Loading branch information
lestermfp authored and BenBE committed Jul 7, 2023
1 parent 37d30a3 commit 5558c01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux/Platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5558c01

Please sign in to comment.