you’d want to update the key values in the validator container… Something like:
docker exec -it sawtooth-validator-default bash
echo "new private key here" > /etc/sawtooth/keys/validator.priv
echo "new public key here" > /etc/sawtooth/keys/validator.pub
exit
docker-compose down
docker-compose up
You could also point the /etc/sawtooth/keys/
path to a local directory. Something like:
- Create a directory under
Server
calledkeys
- Put your desired
validator.priv
andvalidator.pub
keys there - Update the docker-compose file:
Change:
- type: volume
source: validator-key-volume
target: /etc/sawtooth/keys/
to:
volumes:
- ./keys:/etc/sawtooth/keys/
- Restart docker:
docker-compose up
courtesy of @will_gluwa