Skip to content

Instantly share code, notes, and snippets.

@pcostesi
Created February 12, 2019 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcostesi/a696ce8a58084b5238a3cd057e891bbe to your computer and use it in GitHub Desktop.
Save pcostesi/a696ce8a58084b5238a3cd057e891bbe to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
files=$(find . -name "docker-compose.*" -maxdepth 3)
for i in $files; do
pushd $(dirname "$i")
docker-compose down
popd
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment