Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 751 Bytes

File metadata and controls

38 lines (24 loc) · 751 Bytes

Chapter 3 Assignment 2 Bitcoin Technology

Implementing a Bitcoin Network using Bitcoin RPC

Run the code

To run the notebook file, do the following.

  1. Build the docker image
docker image build -t bitcoin-core .
  1. After succesfully building the image, run the docker image
docker run -it --rm -p 8888:8888 -v ${PWD}:/code "bitcoin-core"

This will run the jupyter notebook on the port 8888.

  1. Remove the containers afterward.
docker container stop [container_id]
docker system prune

[container_id] can be obtained by running the command docker container ls

  1. Remove the image
docker image rm [image_id]

[image_id] can be obtained by running the command docker image ls