From 7e90d4382eb40727e361eb61144a0702c35f47af Mon Sep 17 00:00:00 2001 From: Javier Tejero Date: Tue, 31 Oct 2023 17:16:42 +0100 Subject: [PATCH] fixes docker desktop issues with VirtioFS (also works with FUSE) --- cmd/localstack/filenotify/filenotify.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/localstack/filenotify/filenotify.go b/cmd/localstack/filenotify/filenotify.go index 1c1d708..4506367 100644 --- a/cmd/localstack/filenotify/filenotify.go +++ b/cmd/localstack/filenotify/filenotify.go @@ -32,9 +32,9 @@ func shouldUseEventWatcher() bool { err := unix.Uname(&utsname) release := strings.TrimRight(string(utsname.Release[:]), "\x00") log.Println("Release detected: ", release) - // cheap check if we are in Docker desktop or not. + // cheap check if we are in Docker desktop for Windows (WSL2) or not. // We could also inspect the mounts, but that would be more complicated and needs more parsing - return err == nil && !(strings.Contains(release, "linuxkit") || strings.Contains(release, "WSL2")) + return err == nil && !(strings.Contains(release, "WSL2")) } // New tries to use a fs-event watcher, and falls back to the poller if there is an error