This utility script helps manage a Steem witness node using Docker. You can start, stop, restart, and view logs of the witness node container with simple commands.
- Docker installed and running
- A Steem witness node Docker image (
ety001/steem-full-mira
in this example)
The following environment variables can be used to customize the behavior of the script:
- Description: The name of the Docker container that will run the Steem witness node.
- Default: steem
- Example:
export DOCKER_NAME="my_steem_container"
- Description: The Docker image that will be used to run the Steem witness node.
- Default: steem:latest
- Example:
export DOCKER_IMAGE="my_custom_steem_image:latest"
- Description: The local directory where Steem data will be stored. This directory will be mounted to the Docker container.
- Default: /root/steem-docker/data/witness_node_data_dir
- Example:
export LOCAL_STEEM_LOCATION="/mnt/my_steem_data"
To customize the behavior of the script, set any of the environment variables listed above before running the script. If you do not set any of the variables, the script will use the following default values:
- DOCKER_NAME: steem
- DOCKER_IMAGE: steem:latest
- LOCAL_STEEM_LOCATION: /root/steem-docker/data/witness_node_data_dir
export DOCKER_NAME="my_steem_node"
export DOCKER_IMAGE="custom_steem_image:latest"
export LOCAL_STEEM_LOCATION="/mnt/custom_steem_data"
If you do not set any environment variables, the script will run with the default values:
You can use this script to manage the Docker container running the Steem witness node. The script supports the following operations:
./run.sh start
This command will start the Steem witness node in a Docker container, mapping the following ports:
- 2001:2001 – Used by the Steem witness node (seed)
- 8091:8091 – HTTP RPC port for the witness node
The Steem data will be mounted to /data/steem/data on the host.
./run.sh stop
This command will stop the Steem witness node, disconnect it from the Docker network (if connected), and remove the Docker container.
./run.sh restart
This command will stop and then restart the Steem witness node. This is the same as calling:
./run.sh stop
./run.sh start
./run.sh logs
This command will display the logs of the running Steem witness node Docker container, tailing the last 100 lines and following new log entries.