apps:docker:dockerdesktopforwindows
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apps:docker:dockerdesktopforwindows [2024-06-12 18:15] – Manuel Frei | apps:docker:dockerdesktopforwindows [2024-06-13 02:48] (current) – Manuel Frei | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Docker Desktop for Windows ====== | ====== Docker Desktop for Windows ====== | ||
- | |||
- | FIXME FIXME FIXME | ||
===== Purpose / Usage ===== | ===== Purpose / Usage ===== | ||
Line 104: | Line 102: | ||
docker-desktop | docker-desktop | ||
</ | </ | ||
- | |||
- | |||
< | < | ||
wsl -d docker-desktop | wsl -d docker-desktop | ||
</ | </ | ||
- | |||
< | < | ||
Line 122: | Line 117: | ||
</ | </ | ||
+ | ==== Shrink VHDX ==== | ||
- | ===== Shrink | + | The virtual disks (VHDX) for the WSL2 VMs will grow to contain all the container data. If they get too big you have to do an offline shrink operation to get them back to a smaller size. |
- | + | ||
- | If WSL2 is used as Docker | + | |
+ | Make sure, the Docker Engine is stopped and close Docker Desktop for Windows. | ||
+ | Shutdown the WSL2 distributions. | ||
+ | < | ||
+ | wsl --shutdown | ||
+ | </ | ||
+ | Shrink both disks with " | ||
+ | < | ||
Optimize-VHD -Path " | Optimize-VHD -Path " | ||
Optimize-VHD -Path " | Optimize-VHD -Path " | ||
+ | </ | ||
+ | |||
+ | If Optimize-VHD is done, just start Docker Desktop for Windows again. | ||
+ | Example. | ||
< | < | ||
- | |||
PS C:\> Get-Item C: | PS C:\> Get-Item C: | ||
- | |||
Directory: C: | Directory: C: | ||
- | |||
Mode | Mode | ||
---- | ---- | ||
-a---- | -a---- | ||
- | |||
- | |||
- | https:// | ||
- | |||
- | PS C:\> Optimize-VHD -Path c: | ||
- | PS C:\> Optimize-VHD -Path c: | ||
- | |||
PS C:\> wsl --shutdown | PS C:\> wsl --shutdown | ||
- | + | PS C:\> Optimize-VHD C: | |
- | PS C:\> Optimize-VHD C: | + | |
- | + | ||
PS C:\> Get-Item C: | PS C:\> Get-Item C: | ||
- | |||
Directory: C: | Directory: C: | ||
- | |||
Mode | Mode | ||
---- | ---- | ||
-a---- | -a---- | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</ | </ | ||
- | |||
===== Links ===== | ===== Links ===== |
apps/docker/dockerdesktopforwindows.1718208923.txt.gz · Last modified: 2024-06-12 18:15 by Manuel Frei