test: fix container name sanitisation
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
1e2c96e436
commit
106f5fe00a
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue