Updating Q-Client & Docker Images
In case of severe updates of the Q-Client, you will be required to update the validator files and configs. To do so, within directory /testnet-validator
(for validator), /testnet-rootnode
(for rootnode) or /testnet-fullnode
(for fullnode), use the following commands:
- Go to directory
/testnet-validator
or/testnet-rootnode
or/testnet-fullnode
Linux, macOS, other Unix-like systems
cd "YOUR_DISK:/YOUR_DIRECTORY/testnet-public-tools/testnet-validator" # or `/testnet-rootnode` or `/testnet-fullnode`
Windows
cd /d "YOUR_DISK:\YOUR_DIRECTORY\testnet-public-tools\testnet-validator" # or `/testnet-rootnode` or `/testnet-fullnode`
2. Change the docker image directly in your .env
file:
Linux, macOS, other Unix-like systems
nano .env
After editing .env
, save the changes in nano:
- Press
Ctrl+O
to save changes - Press
Ctrl+X
to exit
Windows
#This will open the .env file in Notepad for editing. If you prefer to use a different text editor, replace notepad.exe with the appropriate command for your editor.
notepad.exe .\env
...
QCLIENT_IMAGE=qblockchain/q-client:v1.4.0
...
- Pull (and overwrite) the latest docker image
docker-compose pull
- Restart with new configs & images
docker-compose down -t 60 && docker-compose up -d
Now your validator node should restart and synchronise with the testnet again.