To run the notebook file, do the following.
- Build the docker image
docker image build -t bitcoin-core .
- 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
.
- Remove the containers afterward.
docker container stop [container_id]
docker system prune
[container_id]
can be obtained by running the command docker container ls
- Remove the image
docker image rm [image_id]
[image_id]
can be obtained by running the command docker image ls