Created
March 26, 2020 20:34
-
-
Save Shterneregen/87c9d90876ed59cec948d78d747050bb to your computer and use it in GitHub Desktop.
Remove all docker images & containers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
FOR /f "tokens=*" %%i IN ('docker ps -aq') DO docker rm %%i -f | |
FOR /f "tokens=*" %%i IN ('docker images --format "{{.ID}}"') DO docker rmi %%i -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment