Stand with Ukraine flag
Pricing Try it now
Community Edition
Getting Started Documentation Guides
Architecture API FAQ
On this page

ThingsBoard CE v4.2.x upgrade instructions for Docker

Upgrading ThingsBoard CE to latest 4.2.1 (4.2.1.2)

Doc info icon

NOTE:

These upgrade steps are applicable for ThingsBoard version 4.2.0 or any 4.2.1 patch. In order to upgrade to 4.2.1.2 you need to upgrade to 4.2.0 first.

ThingsBoard CE service upgrade

  1. Change the version of the thingsboard/tb-node in the docker-compose.yml file to the 4.2.1.2.

  2. Execute the following commands:

1
2
 docker pull thingsboard/tb-node:4.2.1.2
 docker compose stop thingsboard-ce
doc warn icon

If you are upgrading from 4.2, you must run the script below. However, if you are upgrading from version .1.x, DO NOT run the upgrade script; proceed directly to starting the service.

1
 docker compose run --rm -e UPGRADE_TB=true thingsboard-ce 
1
 docker compose up -d

Upgrading ThingsBoard CE to 4.2

ThingsBoard CE service upgrade

  1. Change the version of the thingsboard/tb-node in the docker-compose.yml file to the 4.2.0.

  2. Execute the following commands:

1
2
 docker pull thingsboard/tb-node:4.2.0
 docker compose stop thingsboard-ce
doc warn icon

If you are upgrading from version 4.1, you must run the script below

1
 docker compose run --rm -e UPGRADE_TB=true thingsboard-ce 
1
 docker compose up -d