WSL2 docs: add tip on how to move data on windows (#20206)

* WSl2 docs: add tipo on how to move data on windows

Some customers want to move WSL data on a different location and many of those use crafty processes rather than using the feature we support. Making this feature more explicit.

* Apply suggestions from code review

---------

Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com>
This commit is contained in:
Andrea Reale 2024-06-11 14:21:06 +02:00 committed by GitHub
parent bb0a901ae1
commit a79fa7dc32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -51,6 +51,13 @@ Before you turn on the Docker Desktop WSL 2 feature, ensure you have:
Now `docker` commands work from Windows using the new WSL 2 engine.
>**Tip**
>
> By default, Docker Desktop stores the data for the WSL 2 engine at `C:\Users\[USERNAME]\AppData\Local\Docker\wsl`.
> If you want to change the location, for example, to another drive you can do so via the `Settings -> Resources -> Advanced` page from the Docker Dashboard.
> Read more about this and other Windows settings at [Changing Docker Desktop settings on Windows](../settings/windows.md)
{ .tip }
## Enabling Docker support in WSL 2 distros
WSL 2 adds support for "Linux distros" to Windows, where each distro behaves like a VM except they all run on top of a single shared Linux kernel.
@ -90,6 +97,7 @@ Docker Desktop does not require any particular Linux distros to be installed. Th
>
> Docker Desktop installs two special-purpose internal Linux distros `docker-desktop` and `docker-desktop-data`. The first (`docker-desktop`) is used to run the Docker engine (`dockerd`) while the second (`docker-desktop-data`) stores containers and images. Neither can be used for general development.
## Additional resources
- [Explore best practices](best-practices.md)