Last active
October 28, 2022 14:44
-
-
Save pevd950/2725868f27684fb34d5c970bfe64022b to your computer and use it in GitHub Desktop.
Delete all docker images
This file contains hidden or 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
| images=$(docker ps -a) | |
| if [ -n "$images" ]; then | |
| docker rm $(docker ps -a -q) | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment