Skip to content
NEW AI Solution Creator — get a working IoT prototype in 10 minutes
Stand with Ukraine flag

ThingsBoard Edge PE Docker 4.2.x Upgrade Instructions

Upgrading Edge PE to latest 4.2.2 (4.2.2.1)

Backup before upgrading

Go to your docker-compose.yml directory and stop the container:

Terminal window
docker compose stop

Create a backup copy of the database volume:

Terminal window
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"

Update the image version

Update the thingsboard/tb-edge-pe image tag in docker-compose.yml to 4.2.2.1EDGEPE:

Terminal window
sed -i 's|thingsboard/tb-edge-pe:4.2.1.2EDGEPE|thingsboard/tb-edge-pe:4.2.2.1EDGEPE|' docker-compose.yml

Run the upgrade script:

Terminal window
docker compose run mytbedge upgrade-tb-edge.sh

Start the container

Terminal window
docker compose up -d && docker compose logs -f mytbedge

Upgrading Edge PE to latest 4.2.1 (4.2.1.2)

Backup before upgrading

Go to your docker-compose.yml directory and stop the container:

Terminal window
docker compose stop

Create a backup copy of the database volume:

Terminal window
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"

Update the image version

Update the thingsboard/tb-edge-pe image tag in docker-compose.yml to 4.2.1.2EDGEPE:

Terminal window
sed -i 's|thingsboard/tb-edge-pe:4.2.0EDGEPE|thingsboard/tb-edge-pe:4.2.1.2EDGEPE|' docker-compose.yml

Run the upgrade script:

Terminal window
docker compose run mytbedge upgrade-tb-edge.sh

Start the container

Terminal window
docker compose up -d && docker compose logs -f mytbedge

Upgrading Edge PE to 4.2

Backup before upgrading

Go to your docker-compose.yml directory and stop the container:

Terminal window
docker compose stop

Create a backup copy of the database volume:

Terminal window
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"

Update the image version

Update the thingsboard/tb-edge-pe image tag in docker-compose.yml to 4.2.0EDGEPE:

Terminal window
sed -i 's|thingsboard/tb-edge-pe:4.1.0EDGEPE|thingsboard/tb-edge-pe:4.2.0EDGEPE|' docker-compose.yml

Run the upgrade script:

Terminal window
docker compose run mytbedge upgrade-tb-edge.sh

Start the container

Terminal window
docker compose up -d && docker compose logs -f mytbedge