From 1f56504cc8d112b3382ffcfe21bc910c370d7252 Mon Sep 17 00:00:00 2001 From: Joshua <1041261+JoshuaACasey@users.noreply.github.com> Date: Wed, 26 Jun 2024 06:54:11 -0500 Subject: [PATCH] Update .bashrc - docker-clean alias alias to cleanup unused docker containers, images, networks, and volumes --- .bashrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.bashrc b/.bashrc index 0b60c76..2839eff 100644 --- a/.bashrc +++ b/.bashrc @@ -227,6 +227,14 @@ alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"' alias kssh="kitty +kitten ssh" +# alias to cleanup unused docker containers, images, networks, and volumes + +alias docker-clean=' \ + docker container prune -f ; \ + docker image prune -f ; \ + docker network prune -f ; \ + docker volume prune -f ' + ####################################################### # SPECIAL FUNCTIONS #######################################################