test: fix container name sanitisation

Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
Babak K. Shandiz 2026-03-18 02:06:52 +00:00
parent 1e2c96e436
commit 106f5fe00a
No known key found for this signature in database
GPG key ID: 9472CAEFF56C742E

View file

@ -647,6 +647,7 @@ docker_teardown() {
docker_client_setup() {
image="$1"
container_name="repo-client-${image//:/-}"
container_name="${container_name//\//-}"
if [ "$(docker ps -a -q -f "name=^$container_name\$")" ]; then
read -p "Do you want to teardown the existing container and recreate it? (y/n): " choice
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then