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-10 16:38] – 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 ===== |
+ | |||
+ | Docker Desktop is a UI to help developers working with the Docker engine. <color # | ||
+ | |||
+ | * It only works within an interactive user session | ||
+ | * There are memory usage problems: [[https:// | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 24: | Line 30: | ||
</ | </ | ||
- | The default log driver is json-file. All the lines that are written to the stdout/ | + | The default log driver is json-file. All the lines that are written to the stdout/ |
+ | |||
+ | <code JavaScript daemon.json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Together with the default configuration, | ||
<code JavaScript daemon.json> | <code JavaScript daemon.json> | ||
{ | { | ||
Line 64: | Line 82: | ||
</ | </ | ||
- | ===== WSL Distributions | + | ===== WSL2 Backend |
+ | |||
+ | WSL2 is the recommended backend | ||
+ | |||
+ | * " | ||
+ | * " | ||
Line 79: | Line 102: | ||
docker-desktop | docker-desktop | ||
</ | </ | ||
- | |||
- | |||
< | < | ||
wsl -d docker-desktop | wsl -d docker-desktop | ||
</ | </ | ||
- | |||
< | < | ||
Line 97: | Line 117: | ||
</ | </ | ||
+ | ==== Shrink VHDX ==== | ||
- | ===== Shrink | + | The virtual disks (VHDX) for the WSL2 VMs will grow to contain all the container |
- | + | ||
- | + | ||
- | " | + | |
- | " | + | |
+ | 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.1718030331.txt.gz · Last modified: 2024-06-10 16:38 by Manuel Frei