- (default location: %LOCALAPPDATA%/Docker/wsl/data).
- diskpart
- select vdisk file=
- expand vdisk maximum=
- wsl --shutdown
# powershell elevated privilages | |
minikube stop | |
minikube delete | |
# Delete the .minikube and .kube directories under user | |
C:\users\{user}\.minikube (rm $HOME/.minikube) | |
C:\users\{user}\.kube (rm $HOME/.kube) | |
# If one has installed it via chocolatey | |
minikube stop |
# Upgrade node version with choco | |
choco upgrade nodejs.install --version=21.5.0 |
Follow these steps to fix it: | |
Stop Docker | |
Uninstall it from "Add Programs/Remove" | |
Remove Docker folder from AppData/Roaming | |
Remove docker folder from ProgramFiles | |
Remove docker folder from ProgramData | |
Restart machine | |
Installed Docker Desktop again |
worker_processes 1; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
include mime.types; | |
default_type application/octet-stream; |
The default location of the Docker Desktop WSL virtual disk is the C drive and bigger containers can lead the C drive to get full quickly. In case we want to move the docker desktop disk to a different drive/location we can follow the steps below:
Docker disk default location at (%LOCALAPPDATA%/Docker/wsl/data)
Open PowerShell with Admin rights
Quit Docker Desktop
And run following command to get the docker-desktop-data file name
wsl -l -v
Shutdown the wsl
wsl --shutdown
#Using docker with WSL2 can slow your system due to a service vmmem | |
#vmmem is consuming most of the memory [in my case 12GB] and CPU | |
#To fix it :- | |
#Go to your user folder C:\Users\<Your_Username> | |
#create a file (.wslconfig) with following content | |
[wsl2] | |
memory=4GB | |
processors=4 | |
taskkill /f /IM nginx.exe | |
start nginx |