From 312901212e4e1c06d1116948fad02a9d130c218d Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Thu, 16 May 2024 11:38:25 +0100 Subject: [PATCH] Add clear-docker script --- home/bin/clear-docker | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 home/bin/clear-docker diff --git a/home/bin/clear-docker b/home/bin/clear-docker new file mode 100755 index 00000000..196f2607 --- /dev/null +++ b/home/bin/clear-docker @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -euo pipefail + +docker ps -a --format "{{.ID}}" | xargs -r docker rm -f