BlockdagNetworkLabs / blockdag-scripts

BlockDAG Installer for Linux/Ubunutu and MacOS
https://blockdag.network
12 stars 2 forks source link

Add Docker Compose Version Check for Compatibility with v1.x and v2+ #15

Closed saiharish-1029 closed 2 weeks ago

saiharish-1029 commented 2 weeks ago

This update introduces a version check in the script to ensure compatibility with both Docker Compose v1 and v2+. The script now automatically selects the appropriate command based on the detected Docker Compose version:

v1.x: Uses docker-compose v2 or higher: Uses docker compose This change helps streamline the process for users running different versions of Docker Compose, improving compatibility and reducing potential errors.