-
Notifications
You must be signed in to change notification settings - Fork 0
WSL
Oliver Hennhöfer edited this page Apr 7, 2026
·
2 revisions
Warning
This page is legacy / archived and may be outdated. It is preserved for historical context only and is not the source of truth for current operations.
Use current documentation instead:
You can also start from Archive / Legacy Index.
This guide explains how to configure WSL mirrored networking mode to access Docker Swarm applications via localhost (127.0.0.1) instead of WSL's internal IP address.
- Windows 10/11 with WSL 2
- WSL version 2.0.0 or higher
- Docker installed in WSL
Create a .wslconfig file in your Windows user directory:
Location: C:\Users\<YourUsername>\.wslconfig
Content:
[wsl2]
networkingMode=mirroredShut down all WSL instances:
wsl --shutdownStart your WSL distribution again to apply the changes.
Your Docker Swarm services should now be accessible via:
http://localhost:<port>http://127.0.0.1:<port>