nbd-wtf / bitcoin_signet

Generic Signet Dockerfiles
MIT License
18 stars 34 forks source link

Bitcoin Signet Docker Image

πŸ“Œ Table of Contents


πŸ” Overview

Bitcoin Signet provides a sandboxed environment for Bitcoin, allowing developers and testers to simulate the Bitcoin network without the risks associated with the main or test networks. This Docker image facilitates the deployment and configuration of a Signet node, offering a range of customizable options through environment variables.

πŸ›  Environment Variables

⛏ Mining Configuration:

🌐 RPC Configuration:

🌍 Network Configuration:

πŸ“‘ ZMQ Configuration:

πŸ”§ Additional Configuration:

πŸš€ Building and Running the Docker Image

  1. Building the Docker Image:

    docker build -t bitcoin-signet .
  2. Running the Docker Image:

    docker run -d --name bitcoin-signet-instance bitcoin-signet

Note: Ensure you have Docker installed and running on your machine before executing the above commands. Adjust configurations as needed for your specific use case.

πŸ”§ Docker Commands

To make the most out of the Bitcoin Signet Docker image, here are some essential Docker commands:

  1. View running containers:

    docker ps
  2. View all containers (including stopped ones):

    docker ps -a
  3. Stop a running container:

    docker stop bitcoin-signet-instance
  4. Start a stopped container:

    docker start bitcoin-signet-instance
  5. Remove a container:

    docker rm bitcoin-signet-instance
  6. View logs of a container:

    docker logs bitcoin-signet-instance
  7. Execute a command inside a running container:

    docker exec -it bitcoin-signet-instance /bin/bash
  8. Pull the latest version of the image:

    docker pull bitcoin-signet
  9. Remove an image:

    docker rmi bitcoin-signet
  10. View all Docker images:

    docker images

Remember to replace bitcoin-signet-instance with the name of your container if you've named it differently.

πŸ“œ License

This project is licensed under the terms of the MIT License.