From 585ea82a8844e022ad523bca3eecba0a89321961 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 21 Aug 2023 12:47:35 -0700 Subject: [PATCH] Keep commands for cleaning up environment in one file. --- bin/clean.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 bin/clean.sh diff --git a/bin/clean.sh b/bin/clean.sh new file mode 100755 index 0000000..29689d1 --- /dev/null +++ b/bin/clean.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# 2023-08-21 Hyperling +# Clean all unused images and containers. +# https://docs.docker.com/config/pruning/ +# Very helpful during development, nice in a long-running production as well. +# usage: clean.sh + +docker image prune -a + +docker container prune + +docker volume prune + +docker network prune + +exit 0