From 3273a8e18fa84548cc99d406ba26dbe794bffde8 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 14 Feb 2019 09:18:38 +1100 Subject: [PATCH] DEV: cleanup docker prune pattern - 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 | 2 +- scripts/docker-gc | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100755 scripts/docker-gc diff --git a/launcher b/launcher index bf7b9f1..adbf2dc 100755 --- 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 index b611b17..0000000 --- a/scripts/docker-gc +++ /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 - -- 2.25.1