Run a Dogecoin fullnode in a Docker container
But why should I do that?!
- To support the Dogecoin community.
- Just for the sake of doing it.
- Because it's fun.
Make sure that port 22556 is being forwarded on your router!
It's not that hard, actually. There are two ways to get it up and running:
Pull and run the image from the Docker Store
You only need to run one command to get it up and running:
docker run -p 22556:22556 -v /localfolder/dogevolume:/root/.dogecoin evaluationcopy/dogecoin-node:latest
Change the value for /localfolder/dogevolume above to an absolute path on your system where Dogecoin Core can store the blockchain data.
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 it can take days to download the full blockchain.
Boom, your Dogecoin node is up and running!
By default, the image runs dogecoind -printtoconsole
as the command. You can customize the command arguments if desired.
Here's an example of a customized command argument for -maxuploadtarget=20000.
docker run -p 22556:22556 -v /localfolder/dogevolume:/root/.dogecoin evaluationcopy/dogecoin-node:latest dogecoind -printtoconsole -maxuploadtarget=20000
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
Given that, version must be specified on the commandline. The build is run as follows:
sudo docker build --build-arg version=1.14.4 . -t=doge:latest
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.
You can get the bootstrap.dat file from:
Sit back and relax while it's downloading. It's a large file, so it may take some time.
Copy the bootstrap.dat file to the mapped volume directory as shown above, /localfolder/dogevolume is our example.
Once the node has imported the bootstrap.dat file, it'll be renamed to bootstrap.dat.old.
TO THE MOON!!!
Much Receive: D6fhh4nDsYfyBjLFb1CaVZCq4xr7JPXsjQ