Skip to content

Instantly share code, notes, and snippets.

@djangofan
Last active November 13, 2021 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djangofan/97dc8af6d67f3eda36cd3a75699d1a74 to your computer and use it in GitHub Desktop.
Save djangofan/97dc8af6d67f3eda36cd3a75699d1a74 to your computer and use it in GitHub Desktop.
These instructions require that you have Docker properly setup on your Windows computer:
docker volume create portainer_data
docker run -d -p 3040:9000 --name portainer --restart=always -v portainer_data:/data portainer/portainer --no-auth -H tcp://host.docker.internal:2375
docker volume create --name=bitcoind-data
docker run -v bitcoind-data:/bitcoin --name=bitcoind-node -d -p 18444:18444 -p 127.0.0.1:18332:18332 bitcoindevelopernetwork/bitcoind-regtest
then, open Portainer on localhost:3040
then, open the console to write commmands
root@72c3bbef1ef6:~# pwd
/bitcoin
root@72c3bbef1ef6:~# bitcoin-cli getblockhash 0
0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206
Visualization of script here:
https://siminchen.github.io/bitcoinIDE/build/editor.html
@djangofan
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment