DEV: cleanup docker prune pattern
authorSam <sam.saffron@gmail.com>
Wed, 13 Feb 2019 22:18:38 +0000 (09:18 +1100)
committerSam <sam.saffron@gmail.com>
Wed, 13 Feb 2019 22:20:18 +0000 (09:20 +1100)
- When out of space don't prompt a second time to cleanup
- Remove docker gc script which is unused
- Use system prune -a consistently

launcher
scripts/docker-gc [deleted file]

index bf7b9f1870e04c8475c8e6e522cea240a4cb63b2..adbf2dc43569e9ac82783ba3fa7308b617570ef2 100755 (executable)
--- a/launcher
+++ b/launcher
@@ -226,7 +226,7 @@ check_prereqs() {
     echo
     if [[ $REPLY =~ ^[Yy]$ ]]
     then
-      docker system prune
+      $docker_path system prune -af
       echo "If the cleanup was successful, you may try again now"
     fi
     exit 1
diff --git a/scripts/docker-gc b/scripts/docker-gc
deleted file mode 100755 (executable)
index b611b17..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-
-docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker-gc:/var/lib/docker-gc -v /etc:/etc samsaffron/docker-gc
-