Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Created November 17, 2023 23:12
Show Gist options
  • Save memoryleak/757bf5270ef9db70f7cda57ad0022229 to your computer and use it in GitHub Desktop.
Save memoryleak/757bf5270ef9db70f7cda57ad0022229 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
docker compose ls | awk '{print $3}' | grep "docker-compose.yml" | xargs -I% -P0 bash -c "docker compose -f % pull"
docker system prune -a -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment