Skip to content

Automate browser based workflows with AI

Ensure docker is installed on running when starting the script (#2415)

Asher Foa32ca396ebc0a
diff --git a/setup.sh b/setup.sh
index 607b77fb9..12784dda6 100755
--- a/setup.sh
+++ b/setup.sh
@@ -14,12 +14,17 @@ command_exists() {
ensure_required_commands() {
# Ensure required commands are available
- for cmd in poetry npm; do
+ for cmd in poetry npm docker; do
if ! command_exists "$cmd"; then
echo "Error: $cmd is not installed." >&2
exit 1
fi
done
+ # Check docker if running
+ if ! docker info > /dev/null 2>&1; then
+ echo "Docker is not running. Please start Docker and try again."
+ exit 1
+ fi
}
# Function to update or add environment variable in .env file