#!/bin/bash

# Get only running container IDs
RUNNING_CONTAINERS=$(docker ps -q)

if [ -z "$RUNNING_CONTAINERS" ]; then
    echo "No running containers found."
else
    echo "Restarting active containers..."
    docker restart $RUNNING_CONTAINERS
    echo "Done."
fi
