-
Notifications
You must be signed in to change notification settings - Fork 26
WSL2 Deployment Guide
akwin1234 edited this page Jun 20, 2026
·
2 revisions
Running Android-in-Docker under Windows Subsystem for Linux (WSL2) requires additional kernel modules that are typically omitted from Microsoft's stock WSL kernel.
Redroid relies on Android Binder drivers. If you use Microsoft's default kernel, container startup will fail with Binder device errors.
Damru provides a custom WSL2 kernel with Binder, bridge-NAT, and iptables modules enabled.
- Download our pre-compiled kernel from the repository releases.
- Place the kernel in your Windows user directory (e.g.
C:\Users\<Name>\vmlinux). - Create or update your
C:\Users\<Name>\.wslconfigfile:
[wsl2]
kernel=C:\\Users\\<Name>\\vmlinux- Restart WSL in PowerShell:
wsl --shutdownWindows and WSL share network interfaces. To prevent network corruption:
- Damru routes WSL Redroid instances using Docker Bridge Networking on custom ADB ports (e.g.,
5600,5601). - If DNS resolution breaks in your containers, execute:
This command inserts MASQUERADE rules into your local iptables, allowing the container bridge (
python -m damru fix-internet
docker0) to forward packets correctly.