Updating C-Gate IoT Hub¶
C-Gate updates are released quite frequently with new features, bugfixed and security updates. Check our Changelog to see whats new.
Prepare the update¶
Before performing an update:
- Make a backup of the C-Gate data. This will enable you later to downgrade to this version if needed.
- Write down the current version of C-Gate IoT Hub as displayed on the web interface to rollback to this specific version later if needed.
- Check the Changelog before updating for specific update hints or instructions.
Tip
On a virtual server environment with only C-Gate the easiest way to make a backup is to create a VM snapshot.
Backup the C-Gate volume¶
Updating the container¶
Warning
Make sure to backup your C-Gate data before updating.
Tip
On older docker installations without the integrated compose plugin it might be needed to run docker-compose instead of docker compose.
Offline update¶
Warning
Make sure to backup your C-Gate data before updating.
-
Download The latest C-Gate image and copy it to the offline system.
-
Perform the update
Place the image file in
/opt/cloos/cgateand run the following commands:Tip
On older docker installations without the integrated compose plugin it might be needed to run
docker-composeinstead ofdocker compose.
Rollback / Downgrade¶
Danger
Do not start an older C-Gate version without restoring a backup first. C-Gate is performing database migrations after installing an update that are not rolled back when downgrading the container image.
-
Stop the running C-Gate application
-
Recover the data from the previous version
-
Change your C-Gate version
Edit your
docker-compose.ymland replace thecgate:latesttag with the version that matches your C-Gate version of your data backup. For examplecgate:2026.9.0Note
If your machine has no internet access you also need to download copy the image to the machine and load it using
docker load -i c-gate-iot-hub-2026.9.0.image -
Start the the previous version