zkt24/Ekart/scripts/stop-docker.sh

4 lines
181 B
Bash
Raw Normal View History

2024-04-12 09:04:30 +00:00
#!/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}')