Bitcoin Core is programmed to decide which block chain contains valid transactions. The users of Bitcoin Core only accept transactions for that block chain, making it the Bitcoin block chain that everyone else wants to use. For the latest developments related to Bitcoin Core, be sure to visit the project’s official website.
For initital synchronization:
When synchronized:
For initital synchronization:
When synchronized:
Linux CLI example:
$ curl -fsSL https://get.docker.com -o get-docker.sh # Do not forget to review scripts source code before execution
$ sh get-docker.sh # Install docker
(output omitted)
$ docker --version # Verify docker is installed
Docker version 18.09.6, build 481bc77
$ export BASEFILENAME=docker-compose-$(uname -s)-$(uname -m)
$ export BASEURL=https://github.com/docker/compose/releases/download/1.24.0
$ curl -fsSLO "${BASEURl}/${BASEFILENAME}" && curl -fsSLO "${BASEURl}/${BASEFILENAME}.sha256"
$ sha256sum -c $BASEFILENAME.sha256
docker-compose-Linux-x86_64: OK
$ chmod +x $BASEFILENAME && sudo mv $BASEFILENAME /usr/local/bin/docker-compose && rm -f $BASEFILENAME.sha256 && unset BASEURL && unset BASEFILENAME # Install docker-compose
$ docker-compose --version # Verify docker-compose installed
docker-compose version 1.24.0, build 0aa59064
$ mkdir -p my-bitcoin-service-dir && cd $_ # Customize directory name
$ curl -fsSLO https://raw.githubusercontent.com/4ops/docker-bitcoin-core/master/examples/docker/docker-compose.yml # Download service config
$ vi docker-compose.yml # Customize configuration
$ docker-compose config --quiet && docker-compose pull --quiet && echo OK # Verify configuration and download required images
OK
$ docker-compose up -d # Start service(s)
Creating network "my-bitcoin-service-dir_default" with the default driver
Creating my-bitcoin-service-dir_testnet_1 ... done
Creating my-bitcoin-service-dir_mainnet_1 ... done
Linux CLI example with kubectl:
$ mkdir -p my-bitcoin-manifests && cd $_ # Customize directory name
$ export BASEURL=https://raw.githubusercontent.com/4ops/docker-bitcoin-core/master/examples/kubernetes
$ curl -fsSLO "${BASEURL}/secret.yaml" && curl -fsSLO "${BASEURL}/service.yaml" && curl -fsSLO "${BASEURL}/statefulset.yaml" && unset BASEURL # Download statefulset example
$ vi secret.yaml # Customize passwords
$ vi service.yaml # Customize service configuration
$ vi statefulset.yaml # Customize application and disk storage configuration
$ kubectl -n my-bitcoin-namespace apply -f `pwd` --dry-run # Check syntax
secret/bitcoin-core-testnet created (dry run)
service/bitcoin-core-testnet created (dry run)
statefulset.apps/bitcoin-core-testnet created (dry run)
$ kubectl -n my-bitcoin-namespace apply -f `pwd` # Deploy application (do not forget to change namespace name)
Content type
Image
Digest
Size
15.1 MB
Last updated
almost 7 years ago
docker pull 4ops/bitcoin-core