From 6f13b2532d23dabfb8078adc9db3fc4c684b15d1 Mon Sep 17 00:00:00 2001 From: augustin64 Date: Wed, 10 Apr 2024 11:36:33 +0200 Subject: [PATCH] Add clean.sh --- clean.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 clean.sh diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..09197b0 --- /dev/null +++ b/clean.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +docker-do () { # Check if sudo needs to be used + if id -nG "$(whoami)" | grep -qw "docker"; then + docker $@ + else + sudo docker $@ + fi +} + +docker-do stop MsRewards +docker-do rm MsRewards +docker-do image rm msrewards \ No newline at end of file