From 70f8090ec342088729191c924a3c99e8ba3a6226 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Tue, 12 Dec 2023 19:39:56 -0600 Subject: [PATCH] Made docker prune not require confirmation and also added more verbosity --- .bash_aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index 48022f9..0ff481f 100755 --- a/.bash_aliases +++ b/.bash_aliases @@ -115,7 +115,7 @@ alias redog="$DOCKER_COMPOSE_COMMAND down && $DOCKER_COMPOSE_COMMAND up -d; $DOC alias dolog="$DOCKER_COMPOSE_COMMAND up -d; $DOCKER_COMPOSE_COMMAND logs -f" alias watchtower="docker run -d --name watchtower -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --restart unless-stopped" # Regain all that space taken up by projects you abandoned -alias docprune='docker image prune -f && docker network prune -f && docker container prune -f && docker volume prune -f' +alias docprune='echo "Pruning images"; docker image prune -f && echo "Pruning networks"; docker network prune -f && echo "Pruning containers"; docker container prune -f && echo "Pruning Volumes"; docker volume prune -f' # Send things instantly to a pastebin. Pipe other commands into this to share their output. alias bin='nc termbin.com 9999' # Quicker Docker exec