Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.
TypeScript
#!/bin/bash
echo "Finding running Docker containers for Project NOMAD.."
containers=$(docker ps --filter "name=^nomad_" --format "{{.Names}}")
if [ -z "$containers" ]; then
echo "No running containers found for Project NOMAD"
exit 0
fi
echo "Found the following running containers:"
echo "$containers"
echo ""
for container in $containers; do
echo "Gracefully stopping container: $container"
if docker stop "$container"; then
echo "✓ Successfully stopped $container"
else
echo "✗ Failed to stop $container"
fi
echo ""
done
echo "Finished initiating graceful shutdown of all Project NOMAD containers."