Skip to content

Instantly share code, notes, and snippets.

@dougvk
Last active October 17, 2018 16:09
Show Gist options
  • Save dougvk/db3893a87d324b47cbd0834fa323e900 to your computer and use it in GitHub Desktop.
Save dougvk/db3893a87d324b47cbd0834fa323e900 to your computer and use it in GitHub Desktop.
Start a bitcoind full node

Clone my repository to ~

root@docker-s-6vcpu-16gb-nyc3-01:~# git clone https://github.com/dougvk/lightning-node.git

Build the bitcoind docker image

root@docker-s-6vcpu-16gb-nyc3-01:~# cd lightning-node
root@docker-s-6vcpu-16gb-nyc3-01:~/lightning-node# docker build . -t dougvk/bitcoind

Run the bitcoind node

root@docker-s-6vcpu-16gb-nyc3-01:~# mkdir -p /scratch/bitcoin/mainnet/bitcoind
root@docker-s-6vcpu-16gb-nyc3-01:~# docker run --name bitcoind_mainnet -d -v /scratch/bitcoin/mainnet/bitcoind:/data -p 8333:8333 -p 9735:9735 dougvk/bitcoind:latest

Run this command to check progress

root@docker-s-6vcpu-16gb-nyc3-01:~# docker logs bitcoind_mainnet --tail "10"

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