docker run --name bitcoin-server -d -p 18443:18443 -p 18444:18444 -it ruimarinho/bitcoin-core
-regtest=1
-rpcbind=0.0.0.0
-rpcallowip=172.17.0.0/16
-fallbackfee=0.01
-rpcuser=111111
-rpcpassword=111111
https://hub.docker.com/r/ruimarinho/bitcoin-core
https://github.com/ruimarinho/docker-bitcoin-core
进入容器内部
docker exec -it bitcoin-server /bin/bash
bitcoin-wallet -regtest -wallet=demo create
mkdir -p /home/bitcoin/.bitcoin/regtest/wallets/demo/
&&
cp /root/.bitcoin/regtest/wallets/demo/wallet.dat /home/bitcoin/.bitcoin/regtest/wallets/demo/wallet.dat
&&
cd /home/bitcoin/.bitcoin/regtest/wallets/
&&
chmod 777 -R demo/
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 loadwallet demo
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 -generate 110
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 listaddressgroupings
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 sendtoaddress muR9pCyG1SUeTsvntGYAq92vvsnuJddnJp 20
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 getrawtransaction f2ed3255a5819b5fc97eb8fd26ea3da7f87c4f77da2c4357fb99571551ae9fdf
bitcoin-cli -regtest -rpcuser=111111 -rpcpassword=111111 decoderawtransaction 0200000001eeb5d14fd3da4532e709e4573455fff493ee72ac1ea198c32bf0da757def82c4010000006b483045022100aeefc8a0bc4e7ffbaffe44aecfcbf5e06fe0802995355380aa8efaa3457a915f0220051db6d3c035cc4c8adcc7edec77eafe06788b976b4fbd50a17e7f6faba27eb7012102d38d85812e96aa83842d0c0234d6664b8401fbaeaeded93edd384e0ab560df02ffffffff0120003177000000001976a914f9b01e14b7567e9ecd488cf4e605b22c62aa0b4488ac00000000