├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:latest 2 | ARG version 3 | RUN apt update && apt upgrade -y && apt install -y curl gpg ca-certificates tar dirmngr 4 | RUN curl -o dogecoin.tar.gz -Lk https://github.com/dogecoin/dogecoin/releases/download/v${version}/dogecoin-${version}-x86_64-linux-gnu.tar.gz 5 | RUN tar -xvf dogecoin.tar.gz 6 | RUN rm dogecoin.tar.gz 7 | RUN install -m 0755 -o root -g root -t /usr/local/bin dogecoin-${version}/bin/* 8 | EXPOSE 22556 9 | CMD ["dogecoind", "-printtoconsole"] 10 | LABEL name="dogecoin-node" version="${version}" description="Dogecoin fullnode container based off Debian" 11 | LABEL maintainer="Dave Sharone " -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 evaluationcopy 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Dogecoin Core in a Docker container 2 | 3 | Run a Dogecoin fullnode in a Docker container 4 | 5 | **But why should I do that?!** 6 | 7 | * To support the Dogecoin community. 8 | * Just for the sake of doing it. 9 | * Because it's fun. 10 | 11 | ## How to install 12 | 13 | **Make sure that port 22556 is being forwarded on your router!** 14 | 15 | It's not that hard, actually. There are two ways to get it up and running: 16 | 17 | ### Pull and run the image from the [Docker Store](https://hub.docker.com/r/evaluationcopy/dogecoin-node) 18 | 19 | You only need to run one command to get it up and running: 20 | 21 | ```bash 22 | 23 | docker run -p 22556:22556 -v /localfolder/dogevolume:/root/.dogecoin evaluationcopy/dogecoin-node:latest 24 | 25 | ``` 26 | 27 | Change the value for /localfolder/dogevolume above to an absolute path on your system where Dogecoin Core can store the blockchain data. 28 | 29 | It is possible to run without a volume, however the blockchain data will be deleted each time you run it. This may not be wise as 30 | it can take days to download the full blockchain. 31 | 32 | Boom, your Dogecoin node is up and running! 33 | 34 | ### Custom command line arguments 35 | 36 | By default, the image runs ```dogecoind -printtoconsole``` as the command. You can customize the command arguments if desired. 37 | Here's an example of a customized command argument for -maxuploadtarget=20000. 38 | 39 | ```bash 40 | 41 | docker run -p 22556:22556 -v /localfolder/dogevolume:/root/.dogecoin evaluationcopy/dogecoin-node:latest dogecoind -printtoconsole -maxuploadtarget=20000 42 | 43 | ``` 44 | 45 | ## How to build 46 | 47 | The build assumes the web links for Dogecoin Core will be consistent, matching the current format: https://github.com/dogecoin/dogecoin/releases/download/v1.14.4/dogecoin-1.14.4-x86_64-linux-gnu.tar.gz 48 | 49 | Given that, version must be specified on the commandline. The build is run as follows: 50 | 51 | ```bash 52 | 53 | sudo docker build --build-arg version=1.14.4 . -t=doge:latest 54 | 55 | ``` 56 | 57 | ## Optional: kickstart the node with a bootstrap file 58 | 59 | Initial sync may take a looooong time (total blockchain size as of writing is over 50 GB!). That's why it may be useful to have a bootstrap file to make the initial sync process a little faster. 60 | 61 | You can get the bootstrap.dat file from: 62 | 63 | * [this reddit thread](https://www.reddit.com/r/dogecoin/comments/mtzwdh/latest_dogecoin_core_bootstrap_11th_april_2021/)) 64 | 65 | Sit back and relax while it's downloading. It's a large file, so it may take some time. 66 | 67 | Copy the bootstrap.dat file to the mapped volume directory as shown above, /localfolder/dogevolume is our example. 68 | 69 | Once the node has imported the bootstrap.dat file, it'll be renamed to bootstrap.dat.old. 70 | 71 | **TO THE MOON!!!** 72 | 73 | Much Receive: D6fhh4nDsYfyBjLFb1CaVZCq4xr7JPXsjQ --------------------------------------------------------------------------------