Skip to content

Instantly share code, notes, and snippets.

@uiii
Created July 6, 2020 10:26
Show Gist options
  • Select an option

  • Save uiii/3fcda2826e993859bb0cad65797cf66f to your computer and use it in GitHub Desktop.

Select an option

Save uiii/3fcda2826e993859bb0cad65797cf66f to your computer and use it in GitHub Desktop.
docker system prune -a -f
net stop com.docker.service
taskkill /F /IM "Docker Desktop.exe"
stop-vm DockerDesktopVM
Optimize-VHD -Path "C:\Users\Public\Documents\Hyper-V\Virtual hard disks\DockerDesktop.vhdx" -Mode Full
start-vm DockerDesktopVM
start "C:\Program Files\Docker\Docker\Docker Desktop.exe"
net start com.docker.service
done :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment