Skip to content

Add note on WSL2 path formatting for hot reloading in Rancher Desktop on Windows #1769

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jun 26, 2025
11 changes: 11 additions & 0 deletions content/en/user-guide/lambda-tools/hot-reloading/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@
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.
MacOS may prompt you to grant Docker access to your target folders.

**WSL2-compatible paths required with Rancher Desktop on Windows:**
Make sure your Lambda handler paths are specified using WSL2-compatible paths. For example, instead of using a Windows-style path such as:

Check failure on line 44 in content/en/user-guide/lambda-tools/hot-reloading/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Max 1 sentence should be on a line

content/en/user-guide/lambda-tools/hot-reloading/index.md:44:77 max-one-sentence-per-line Max 1 sentence should be on a line [Context: "e paths. For e"] https://github.com/aepfli/markdownlint-rule-max-one-sentence-per-line
```bash

Check failure on line 45 in content/en/user-guide/lambda-tools/hot-reloading/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Fenced code blocks should be surrounded by blank lines

content/en/user-guide/lambda-tools/hot-reloading/index.md:45 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md031.md
C:\Users\myuser\projects\lambda\handler.py
```

Check failure on line 47 in content/en/user-guide/lambda-tools/hot-reloading/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Fenced code blocks should be surrounded by blank lines

content/en/user-guide/lambda-tools/hot-reloading/index.md:47 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md031.md
Use the corresponding WSL-style path:
```bash

Check failure on line 49 in content/en/user-guide/lambda-tools/hot-reloading/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Fenced code blocks should be surrounded by blank lines

content/en/user-guide/lambda-tools/hot-reloading/index.md:49 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```bash"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md031.md
/mnt/c/Users/myuser/projects/lambda/handler.py
```

Check failure on line 51 in content/en/user-guide/lambda-tools/hot-reloading/index.md

View workflow job for this annotation

GitHub Actions / Markdown Lint

Fenced code blocks should be surrounded by blank lines

content/en/user-guide/lambda-tools/hot-reloading/index.md:51 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"] https://github.com/DavidAnson/markdownlint/blob/v0.37.4/doc/md031.md
This ensures that LocalStack can properly mount and watch your Lambda code inside the container when running under WSL2.

**Layer limit with hot reloading for layers:**
When hot reloading is active for a Lambda layer (Pro), the function can use at most one layer.

Expand Down
Loading