Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Created January 20, 2018 11:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save PixelRobots/def2cc5134c42c94e36f2d292cc0c9a5 to your computer and use it in GitHub Desktop.
Save PixelRobots/def2cc5134c42c94e36f2d292cc0c9a5 to your computer and use it in GitHub Desktop.
# Leave swarm mode (this will automatically stop and remove services and overlay networks)
Docker swarm leave --force
# Stop all running containers
docker ps --quiet | ForEach-Object {docker stop $_}
docker system prune --volumes --all
Get-PackageProvider -Name *Docker*
Uninstall-Package -Name docker -ProviderName DockerProvider
Uninstall-Module -Name DockerProvider
Get-HNSNetwork | Remove-HNSNetwork
Remove-Item "C:\ProgramData\Docker" -Recurse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment