From b2583e6569897bea909b0d6525c8534b87b85915 Mon Sep 17 00:00:00 2001 From: Lopera Mendizabal Date: Fri, 12 Apr 2024 09:04:30 +0000 Subject: [PATCH] =?UTF-8?q?A=C3=B1adir=20'Ekart/scripts/stop-docker.sh'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ekart/scripts/stop-docker.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Ekart/scripts/stop-docker.sh diff --git a/Ekart/scripts/stop-docker.sh b/Ekart/scripts/stop-docker.sh new file mode 100644 index 0000000..2d6018b --- /dev/null +++ b/Ekart/scripts/stop-docker.sh @@ -0,0 +1,3 @@ +#!/bin/bash +echo -e "\nStop running Docker containers with image tag ${CONTAINER_NAME}, and remove them...n" +docker stop $(docker ps -a | grep ${CONTAINER_NAME} | awk '{print $1}')