Please see the Docker installation documentation for details on how to install or upgrade your Docker daemon.
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
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
Dockerfiles are available on GitHub