Skip to content

Instantly share code, notes, and snippets.

@supermarsx
Created November 4, 2025 15:47
Show Gist options
  • Select an option

  • Save supermarsx/bac0d2b76758e54c175300b28b7a0cdd to your computer and use it in GitHub Desktop.

Select an option

Save supermarsx/bac0d2b76758e54c175300b28b7a0cdd to your computer and use it in GitHub Desktop.
Shutdown and remove all Docker Compose containers subfolders within a directory
find . -type f \( -name "docker-compose.yml" -o -name "compose.yaml" \) -execdir sh -c 'echo "↓ Stopping in $(pwd)"; docker compose down' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment