ThingsBoard Edge Docker 3.6.x Upgrade Instructions
Upgrading Edge to 3.6.4
Backup before upgrading
Go to your docker-compose.yml directory and stop the container:
docker compose stopCreate a backup copy of the database volume:
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"If you installed Edge with Docker on Windows, the database volume is mytb-edge-data-db: use it in place of tb-edge-postgres-data.
Update the image version
Update the thingsboard/tb-edge image tag in docker-compose.yml to 3.6.4EDGE:
sed -i -E 's#thingsboard/tb-edge:[^" ]+#thingsboard/tb-edge:3.6.4EDGE#' docker-compose.ymlOn Windows, PowerShell has no sed: open docker-compose.yml in a text editor and set the image: line of the mytbedge service to thingsboard/tb-edge:3.6.4EDGE.
Start the database. If your docker-compose.yml also has kafka or cassandra services, add them to the command:
docker compose up -d postgresRun the upgrade script:
docker compose run --rm mytbedge upgrade-tb-edge.shStart the container
docker compose up -ddocker compose logs -f mytbedgeUpgrading Edge to 3.6.3
Backup before upgrading
Go to your docker-compose.yml directory and stop the container:
docker compose stopCreate a backup copy of the database volume:
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"If you installed Edge with Docker on Windows, the database volume is mytb-edge-data-db: use it in place of tb-edge-postgres-data.
Update the image version
Update the thingsboard/tb-edge image tag in docker-compose.yml to 3.6.3EDGE:
sed -i -E 's#thingsboard/tb-edge:[^" ]+#thingsboard/tb-edge:3.6.3EDGE#' docker-compose.ymlOn Windows, PowerShell has no sed: open docker-compose.yml in a text editor and set the image: line of the mytbedge service to thingsboard/tb-edge:3.6.3EDGE.
Start the database. If your docker-compose.yml also has kafka or cassandra services, add them to the command:
docker compose up -d postgresRun the upgrade script:
docker compose run --rm mytbedge upgrade-tb-edge.shStart the container
docker compose up -ddocker compose logs -f mytbedgeUpgrading Edge to 3.6.2
Backup before upgrading
Go to your docker-compose.yml directory and stop the container:
docker compose stopCreate a backup copy of the database volume:
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"If you installed Edge with Docker on Windows, the database volume is mytb-edge-data-db: use it in place of tb-edge-postgres-data.
Update the image version
Update the thingsboard/tb-edge image tag in docker-compose.yml to 3.6.2EDGE:
sed -i -E 's#thingsboard/tb-edge:[^" ]+#thingsboard/tb-edge:3.6.2EDGE#' docker-compose.ymlOn Windows, PowerShell has no sed: open docker-compose.yml in a text editor and set the image: line of the mytbedge service to thingsboard/tb-edge:3.6.2EDGE.
Start the database. If your docker-compose.yml also has kafka or cassandra services, add them to the command:
docker compose up -d postgresRun the upgrade script:
docker compose run --rm mytbedge upgrade-tb-edge.shStart the container
docker compose up -ddocker compose logs -f mytbedgeUpgrading Edge to 3.6.1
Backup before upgrading
Go to your docker-compose.yml directory and stop the container:
docker compose stopCreate a backup copy of the database volume:
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"If you installed Edge with Docker on Windows, the database volume is mytb-edge-data-db: use it in place of tb-edge-postgres-data.
Update the image version
Update the thingsboard/tb-edge image tag in docker-compose.yml to 3.6.1EDGE:
sed -i -E 's#thingsboard/tb-edge:[^" ]+#thingsboard/tb-edge:3.6.1EDGE#' docker-compose.ymlOn Windows, PowerShell has no sed: open docker-compose.yml in a text editor and set the image: line of the mytbedge service to thingsboard/tb-edge:3.6.1EDGE.
Start the database. If your docker-compose.yml also has kafka or cassandra services, add them to the command:
docker compose up -d postgresRun the upgrade script:
docker compose run --rm mytbedge upgrade-tb-edge.shStart the container
docker compose up -ddocker compose logs -f mytbedgeUpgrading Edge to 3.6
Backup before upgrading
Go to your docker-compose.yml directory and stop the container:
docker compose stopCreate a backup copy of the database volume:
docker run --rm -v tb-edge-postgres-data:/source -v tb-edge-postgres-data-backup:/backup busybox sh -c "cp -a /source/. /backup"If you installed Edge with Docker on Windows, the database volume is mytb-edge-data-db: use it in place of tb-edge-postgres-data.
Update the image version
Update the thingsboard/tb-edge image tag in docker-compose.yml to 3.6.0EDGE:
sed -i -E 's#thingsboard/tb-edge:[^" ]+#thingsboard/tb-edge:3.6.0EDGE#' docker-compose.ymlOn Windows, PowerShell has no sed: open docker-compose.yml in a text editor and set the image: line of the mytbedge service to thingsboard/tb-edge:3.6.0EDGE.
Start the database. If your docker-compose.yml also has kafka or cassandra services, add them to the command:
docker compose up -d postgresRun the upgrade script:
docker compose run --rm mytbedge upgrade-tb-edge.shStart the container
docker compose up -ddocker compose logs -f mytbedgeWas this helpful?