From b6560d14a4f088b6389a8f8efe5864daea4021a1 Mon Sep 17 00:00:00 2001 From: Rickard Andersson Date: Wed, 12 Mar 2025 13:06:27 +0100 Subject: [PATCH] Prevent new containers when running hugo script By using the --rm flag. In addition I've set a name for the container --- hugo.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hugo.sh b/hugo.sh index 790a9d0..551a052 100755 --- a/hugo.sh +++ b/hugo.sh @@ -3,6 +3,8 @@ HUGO_VERSION="0.145.0" docker run \ + --name devies-blog \ + --rm \ -p 1313:1313 \ -v ${PWD}:/src \ hugomods/hugo:exts-"$HUGO_VERSION" "$@"