BlockdagNetworkLabs / blockdag-scripts

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

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

Closed dev001101 closed 3 weeks ago

dev001101 commented 3 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.