nre/docker/README.md
Tested using:
Confirm you have either Docker Engine or Docker Desktop installed, as well as Docker Compose.
Update validator.yaml and place it in the same directory as docker-compose.yaml.
Add the paths to your private keys to validator.yaml. If you chose to put them in /opt/sui/key-pairs, you can use the following example:
protocol-key-pair:
path: /opt/sui/key-pairs/protocol.key
worker-key-pair:
path: /opt/sui/key-pairs/worker.key
network-key-pair:
path: /opt/sui/key-pairs/network.key
genesis.blob in the same directory as docker-compose.yaml. (available post genesis ceremony)You may need to explicitly open the ports outlined in Sui for Node Operators for the required Sui Node connectivity.
Start Sui Node in detached mode:
sudo docker compose up -d
By default, logs are stored at /var/lib/docker/containers/[container-id]/[container-id]-json.log.
sudo docker compose logs -f validator
--sincesudo docker logs --since 10m -f validator
# get the volume location on disk
sudo docker volume inspect docker_suidb
# get the size of the volume on disk
sudo du -sh /var/lib/docker/volumes/docker_suidb/_data
sudo docker-compose down -v
sudo docker compose down
- image: mysten/sui-node:<OLD_SUI_SHA>
+ image: mysten/sui-node:<NEW_SUI_SHA>
sudo docker compose up -d