Skip to main content
Glama
stop-server.sh808 B
#!/usr/bin/env bash # Docker MCP Server Stop Script set -euo pipefail echo "🛑 Stopping Docker MCP Server..." # Find processes running our server PIDS=$(pgrep -f "docker/mcp-docker-server/src/index.js" || true) if [[ -n "$PIDS" ]]; then echo "📊 Found server processes: $PIDS" # Try graceful shutdown first echo "🔄 Attempting graceful shutdown..." kill -TERM $PIDS # Wait a few seconds sleep 3 # Check if still running REMAINING=$(pgrep -f "docker/mcp-docker-server/src/index.js" || true) if [[ -n "$REMAINING" ]]; then echo "⚠️ Processes still running, forcing shutdown..." kill -KILL $REMAINING sleep 1 fi echo "✅ Server stopped successfully" else echo "ℹ️ No server processes found" fi

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/marcelofmatos/mcp-docker-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server