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 Jun 18, 2023
1 parent ea23eee commit 6adf8ce
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 6adf8ce

Please sign in to comment.