zkt24/Ekart/scripts/stop-docker.sh

4 lines
181 B
Bash

#!/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}')