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.

Revisions

  1. uiii created this gist Jul 6, 2020.
    9 changes: 9 additions & 0 deletions Docker for Windows cleanup
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    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