From 97ccaee674d865ac651438fbef276e4ccadf30f6 Mon Sep 17 00:00:00 2001 From: Sagent Date: Mon, 8 Jun 2026 16:33:31 +0000 Subject: [PATCH] fix: sanitize container name in test script Replace : and / with - to comply with Docker container naming rules. The colon in image:tag format is invalid in container names. --- tests/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.sh b/tests/test.sh index 8e84e47..6a7d4d0 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -2,7 +2,7 @@ set -euo pipefail IMAGE="${1:?Usage: test.sh }" -CONTAINER_NAME="test-$(basename "$IMAGE")-$$" +CONTAINER_NAME="test-$(echo "$IMAGE" | tr ':/' '-')-$$" PASSED=0 FAILED=0 TOTAL=0