We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3077e7 commit af2f816Copy full SHA for af2f816
scripts/docker-cleanup
@@ -0,0 +1,10 @@
1
+#!/bin/bash
2
+
3
+# !!! use with caution !!!
4
+# source: https://techoverflow.net/blog/2013/10/22/docker-remove-all-images-and-containers/
5
6
+# delete all containers
7
+docker rm -f $(docker ps -a -q)
8
9
+# delete all images
10
+docker rmi -f $(docker images -q)
0 commit comments