docker exec -it geth-cluster1 /bin/bash
geth –datadir data0 –networkid 779977 console
root@85547cf26bca:/ethutil# cat gethup.sh
#!/bin/bash
# Usage:
# bash /path/to/eth-utils/gethup.sh <datadir> <instance_name>
root=$1 # base directory to use for datadir and logs
shift
dd=$1 # double digit instance id like 00 01 02
shift
nodegroup=$1 # nodegroup 0,1,2,...
shift
mine=$1 # mine Y or No
shift
# logs are output to a date-tagged file for each run , while a link is
# created to the latest, so that monitoring be easier with the same filename
# TODO: use this if GETH not set
GETH=geth
# geth CLI params e.g., (dd=04, run=09)
datetag=`date "+%c%y%m%d-%H%M%S"|cut -d ' ' -f 5`
datadir=$root/data/$dd # /tmp/eth/04
log=$root/log/$dd.$datetag.log # /tmp/eth/04.09.log