File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change 7272 docker top ${! i}
7373 exit
7474
75- elif [[ ${! i} = start ]]; then
75+ elif [[ ${! i} = * start ]]; then
7676 (( i++ ))
77- docker start ${! i}
77+ docker restart ${! i}
7878 exit
7979
8080 elif [[ ${! i} = stop ]]; then
109109 (( i++ ))
110110 echo
111111 echo " play ids"
112- echo " play top <CONTAINER_ID>"
113- echo " play <command> - execute shell command in container"
114- echo " play -d '<command>' - send command to bitcoind"
115- echo " play -cli '<command>' - send command to bitcoin-cli"
112+ echo " play top <CONTAINER_ID>"
113+ echo " play start <CONTAINER_ID>"
114+ echo " play stop <CONTAINER_ID>"
116115 echo
117116 echo " Examples:"
118117 echo
119- echo " play ls"
120- echo " play cd / & ls -a"
121- echo " play -cli gettxoutsetinfo"
122- echo " play -cli getmininginfo"
123- echo " play -cli 'getblockhash 1000'"
118+ echo " docker exec -it <CONTAINER_ID> sh - enter container shell"
124119 echo
125- echo " docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoind -daemon -prune=550'"
120+ echo " playground-bitcoind"
121+ echo
122+ echo " play -cli gettxoutsetinfo"
126123 echo " docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli gettxoutsetinfo'"
124+ echo " play -cli getmininginfo"
127125 echo " docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli getmininginfo'"
126+ echo " play -cli 'getblockhash 1000'"
128127 echo " docker exec -it $BITCOIND_ID sh -c '/usr/local/bin/bitcoin-cli $1 '"
128+ echo
129129 exit
130130
131131 elif [ -n ${! i} ]; then
You can’t perform that action at this time.
0 commit comments