XinFinOrg / XinFin-Node

Setup XinFin Masternode using Docker
https://xinfin.org/setup-masternode.php
63 stars 51 forks source link

support docker compose #102

Closed gzliudan closed 11 months ago

gzliudan commented 11 months ago

About this PR

1. Support docker compose

Set docker-compose as an alias of docker compose when docker-compose is not found.

2. Remove sudo in scripts

If the user has docker permission:

./docker-up.sh
./docker-down.sh

If the user has no docker permission:

sudo ./docker-up.sh
sudo ./docker-down.sh

BTW: how to grant docker permission:

sudo adduser ${USER} docker 
newgrp docker