Build the Docker Images
-
Clone or copy the Dockerfiles and any state-sync scripts into a local directory.
-
Navigate to that directory.
-
Build your image:
docker build -t <image-tag> -f /path/to/dockerfile .
Example:
docker build -t sentinel:mainnet -f dockerfile_sentinel_main .
- Run a container from your newly built image:
docker run -dit --name <container-name> <image-tag>
Example:
docker run -dit --name sentinel_mainnet sentinel:mainnet
- Exec into your running container:
docker exec -it <container-name> bash
Example:
docker exec -it sentinel_mainnet bash
- State-Sync (once inside the container):
./state-sync.sh
- This script may have a slightly different name for testnet and cosmovisor variants
- Run
cat nohup
to view script output
- Change Passwords
chpasswd root
chpasswd sentinel
- Transaction Setup
- Import your node key (e.g.,
sentinelhub keys add ...
). - If you are a validator, copy your validator private key JSON into the container (see Mount a Volume section).
- A TMKMS Docker image is in testing and will be released soon.