Dockerized Steem wallet/miner
Prerequisites
Please see the Docker installation documentation for details on how to install or upgrade your Docker daemon.
Quick Start
Download an image with Steem wallet software from DockerHub
docker pull teego/steem_wallet
Create a data folder
mkdir -p ~/.steem/witness_node_data_dir
Extract a default config file from an image
docker run -it teego/steem_blockchain cat /witness_node_data_dir/config.ini >~/.steem/witness_node_data_dir/config.ini
Edit witness
, miner
and mining-threads
options
# name of witness controlled by this node (e.g. initwitness )
witness = "account"
# name of miner and its private key (e.g. ["account","WIF PRIVATE KEY"] )
miner = ["account","WIF PRIVATE KEY"]
# Number of threads to use for proof of work mining
mining-threads = 2
Launch a wallet container
docker run --name steem_wallet -p 8090:8090 -v ~/.steem/witness_node_data_dir:/witness_node_data_dir teego/steem_wallet
Once you have a wallet container running, you can run a command line interface
docker exec -it steem_wallet /root/steem/programs/cli_wallet/cli_wallet
Preloaded blockchain
Download an image with preloaded blockchain from DockerHub
docker pull teego/steem_blockchain
Create a new named container with a volume to share. While this container doesn’t run an application, it reuses the teego/steem_blockchain
image so that all containers are using layers in common, saving disk space.
docker create --name steem_blockchain teego/steem_blockchain /bin/true
You can then use the --volumes-from
flag to mount the a data volume.
docker run --name steem_wallet -p 8090:8090 --volumes-from steem_blockchain -v ~/.steem/witness_node_data_dir/config.ini:/witness_node_data_dir/config.ini teego/steem_wallet
Sources
Dockerfiles are available on GitHub
Updated to version 0.9.0rc2
Nice howto, thank you. It's little guides like these that really help show off the power and value of containers, I think. That being said, cli_wallet is located in /usr/local/bin in this container, not /root/steem/programs/cli_wallet.
Thanks again, I appreciate you putting this out there.
Why are you using bit.ly for your links? Also your first link says "Steem wallet 0.5.0." Version 0.5.0 is outdated and won't be able to sync with the current network.
It's version 0.8.5 actually