Skip to content

Commit 9f7ed8e

Browse files
authored
fix(wsl): all resources frozen by Docker (#61)
1 parent 157ded3 commit 9f7ed8e

File tree

1 file changed

+4
-1
lines changed
  • layers/wsl2_amd64/opt

1 file changed

+4
-1
lines changed

layers/wsl2_amd64/opt/ovmd

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,10 @@ main() {
267267
}
268268
echo "main(): wait....."
269269
while true; do
270-
sleep 1
270+
# After enabling the "Resource Saver" mode in Docker Desktop for Windows, all resources under cgroup will be frozen.
271+
# Since we rely on cgroup and cannot modify the logic of Docker Desktop for Windows, this is the only quick way to resolve the issue.
272+
find /sys/fs/cgroup/openrc.* -name cgroup.freeze -exec sh -c 'echo 0 > {}' \;
273+
sleep 0.5
271274
done
272275
}
273276

0 commit comments

Comments
 (0)