Skip to content

Instantly share code, notes, and snippets.

@Pirognoe
Forked from daredude/docker-clear.bat
Created June 15, 2022 07:35
Show Gist options
  • Select an option

  • Save Pirognoe/7b4adfdaff60e4ce72bafb4b1ec486be to your computer and use it in GitHub Desktop.

Select an option

Save Pirognoe/7b4adfdaff60e4ce72bafb4b1ec486be to your computer and use it in GitHub Desktop.
delete all docker container and images on windows
@echo off
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i
@Pirognoe
Copy link
Author

copy paste

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment