5 mapfile -t NTS_containers < <( docker ps -a --filter "label=NTS" --format "{{.ID}}" )
9 if [ ${#NTS_containers[@]} -gt 0 ]
12 for container in "${NTS_containers[@]}"
14 CONTAINERS="$CONTAINERS $container"
16 echo "Cleaning up ontainers: $CONTAINERS"
17 docker kill $CONTAINERS > /dev/null 2>&1
18 docker rm $CONTAINERS > /dev/null 2>&1
21 echo "Cleaning NTS Manager container"
22 docker kill NTS_Manager > /dev/null 2>&1
23 docker rm NTS_Manager > /dev/null 2>&1
25 echo "All cleaned up!"