Upgrading ThingsBoard Edge — Docker
Upgrading Edge to 4.4.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
Replace the thingsboard/tb-edge-pe image in docker-compose.yml with thingsboard/tb-edge, tag 4.4.1EDGE. The command below also updates a Community Edge image (thingsboard/tb-edge with an older tag):
sed -i -E 's#thingsboard/tb-edge(-pe)?:[^" ]+#thingsboard/tb-edge:4.4.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:4.4.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 PE to 4.3.1.9 (latest 4.3.1 patch)
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-pe image tag in docker-compose.yml to 4.3.1.9EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.3.1.9EDGEPE#' 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-pe:4.3.1.9EDGEPE.
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 PE to 4.3.0.1 (latest 4.3.0 patch)
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-pe image tag in docker-compose.yml to 4.3.0.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.3.0.1EDGEPE#' 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-pe:4.3.0.1EDGEPE.
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 PE to 4.2.2.9 (latest 4.2.2 patch)
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-pe image tag in docker-compose.yml to 4.2.2.9EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.2.2.9EDGEPE#' 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-pe:4.2.2.9EDGEPE.
Start the container
docker compose up -ddocker compose logs -f mytbedgeUpgrading Edge PE to 4.2.1.2 (latest 4.2.1 patch)
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-pe image tag in docker-compose.yml to 4.2.1.2EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.2.1.2EDGEPE#' 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-pe:4.2.1.2EDGEPE.
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 PE to 4.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-pe image tag in docker-compose.yml to 4.2.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.2.0EDGEPE#' 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-pe:4.2.0EDGEPE.
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 PE to 4.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-pe image tag in docker-compose.yml to 4.1.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.1.0EDGEPE#' 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-pe:4.1.0EDGEPE.
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 PE to 4.0.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-pe image tag in docker-compose.yml to 4.0.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:4.0.1EDGEPE#' 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-pe:4.0.1EDGEPE.
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 PE to 3.9.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-pe image tag in docker-compose.yml to 3.9.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.9.1EDGEPE#' 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-pe:3.9.1EDGEPE.
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 PE to 3.9
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-pe image tag in docker-compose.yml to 3.9.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.9.0EDGEPE#' 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-pe:3.9.0EDGEPE.
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 PE to 3.8
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-pe image tag in docker-compose.yml to 3.8.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.8.0EDGEPE#' 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-pe:3.8.0EDGEPE.
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 PE to 3.7
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-pe image tag in docker-compose.yml to 3.7.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.7.0EDGEPE#' 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-pe:3.7.0EDGEPE.
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 PE 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-pe image tag in docker-compose.yml to 3.6.4EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.6.4EDGEPE#' 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-pe:3.6.4EDGEPE.
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 PE 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-pe image tag in docker-compose.yml to 3.6.3EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.6.3EDGEPE#' 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-pe:3.6.3EDGEPE.
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 PE 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-pe image tag in docker-compose.yml to 3.6.2EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.6.2EDGEPE#' 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-pe:3.6.2EDGEPE.
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 PE 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-pe image tag in docker-compose.yml to 3.6.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.6.1EDGEPE#' 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-pe:3.6.1EDGEPE.
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 PE 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-pe image tag in docker-compose.yml to 3.6.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.6.0EDGEPE#' 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-pe:3.6.0EDGEPE.
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 PE to 3.5.1.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-pe image tag in docker-compose.yml to 3.5.1.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.5.1.1EDGEPE#' 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-pe:3.5.1.1EDGEPE.
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 PE to 3.5.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-pe image tag in docker-compose.yml to 3.5.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.5.1EDGEPE#' 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-pe:3.5.1EDGEPE.
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 PE to 3.5
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-pe image tag in docker-compose.yml to 3.5.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.5.0EDGEPE#' 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-pe:3.5.0EDGEPE.
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 PE to 3.4.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-pe image tag in docker-compose.yml to 3.4.3EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.4.3EDGEPE#' 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-pe:3.4.3EDGEPE.
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 PE to 3.4.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-pe image tag in docker-compose.yml to 3.4.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.4.1EDGEPE#' 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-pe:3.4.1EDGEPE.
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 PE to 3.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-pe image tag in docker-compose.yml to 3.4.0EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.4.0EDGEPE#' 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-pe:3.4.0EDGEPE.
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 PE to 3.3.4.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-pe image tag in docker-compose.yml to 3.3.4.1EDGEPE:
sed -i -E 's#thingsboard/tb-edge-pe:[^" ]+#thingsboard/tb-edge-pe:3.3.4.1EDGEPE#' 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-pe:3.3.4.1EDGEPE.
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?