Skip to content

Commit 11d7a7c

Browse files
Add note on WSL2 path formatting for hot reloading in Rancher Desktop on Windows (#1769)
Co-authored-by: Quetzalli <[email protected]>
1 parent d22e6d5 commit 11d7a7c

File tree

1 file changed

+15
-0
lines changed
  • content/en/user-guide/lambda-tools/hot-reloading

1 file changed

+15
-0
lines changed

content/en/user-guide/lambda-tools/hot-reloading/index.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@ Therefore, filesystem changes persist between code changes for invocations dispa
4040
If using Docker Desktop on macOS, you might need to allow [file sharing](https://docs.docker.com/desktop/settings/mac/#file-sharing) for your target folders.
4141
MacOS may prompt you to grant Docker access to your target folders.
4242

43+
**WSL2-compatible paths required with Rancher Desktop on Windows:**
44+
Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path such as:
45+
46+
```bash
47+
C:\Users\myuser\projects\lambda\handler.py
48+
```
49+
50+
Use the corresponding WSL-style path:
51+
52+
```bash
53+
/mnt/c/Users/myuser/projects/lambda/handler.py
54+
```
55+
56+
This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2.
57+
4358
**Layer limit with hot reloading for layers:**
4459
When hot reloading is active for a Lambda layer (Pro), the function can use at most one layer.
4560

0 commit comments

Comments
 (0)