-
Notifications
You must be signed in to change notification settings - Fork 8.1k
wsl2: cover custom WSL2 kernels #21956
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| title: Custom kernels on WSL | ||
| description: Using custom kernels with Docker Desktop on WSL 2 | ||
| keywords: wsl, docker desktop, custom kernel | ||
| tags: [Best practices, troubleshooting] | ||
| aliases: | ||
| - /desktop/wsl/custom-kernels/ | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| --- | ||
|
|
||
| Docker Desktop depends on several kernel features built into the default | ||
| WSL 2 Linux kernel distributed by Microsoft. Because of that, **using a | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| custom kernel with Docker Desktop on WSL 2 is not officially supported** | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| and may cause issues with Docker Desktop startup or operation. | ||
|
|
||
| At the same time, we understand that in some cases it may be necessary | ||
|
Check warning on line 15 in content/manuals/desktop/features/wsl/custom-kernels.md
|
||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| to run custom kernels; Docker Desktop does not block their use, and | ||
| some users have reported success using them. | ||
|
|
||
| If you choose to use a custom kernel, we suggest starting | ||
|
Check warning on line 19 in content/manuals/desktop/features/wsl/custom-kernels.md
|
||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| from the kernel tree distributed by Microsoft at their [official | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| repository](https://github.com/microsoft/WSL2-Linux-Kernel) and adding | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| the features you need on top of that. | ||
|
|
||
| We suggest to: | ||
|
Check warning on line 24 in content/manuals/desktop/features/wsl/custom-kernels.md
|
||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Use the same kernel version as the one distributed by the latest WSL2 | ||
| release (you can find the version by running `wsl.exe --system uname -r` | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| in a terminal). | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - Start from the default kernel configuration as provided by Microsoft | ||
| in their [repository](https://github.com/microsoft/WSL2-Linux-Kernel) | ||
aevesdocker marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| and add the features you need on top of that. | ||
| - Make sure that your kernel build environment includes `pahole` and | ||
| its version is properly reflected in the corresponding kernel config | ||
| (`CONFIG_PAHOLE_VERSION`). | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.