Last active
          November 13, 2021 01:06 
        
      - 
      
- 
        Save djangofan/97dc8af6d67f3eda36cd3a75699d1a74 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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 | 
      
      
  Author
  
  
        
      
            djangofan
  
      
      
      commented 
        Nov 13, 2021 
      
    
  

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