Manual upgrade: Upgrade PMM Server using Docker¶
Before you begin¶
Before starting the upgrade, complete these preparation steps to ensure you can recover your system if needed and confirm compatibility with the new version:
-
Create a backup before upgrading, as downgrades are not possible. Therefore, reverting to a previous version requires a backup made prior to the upgrade.
-
Verify your current PMM version: Check your current PMM version by navigating to Configuration > Updates or by running the following command:
docker exec -it pmm-server curl -ku admin:admin https://localhost:8443/v1/version -
If your current version is PMM 3.9.1 or earlier and you use the built-in database, this upgrade also migrates your PMM Server data from PostgreSQL 14 to PostgreSQL 18, so the first start takes longer than usual. Prepare for the PostgreSQL migration.
Upgrade steps¶
Follow these steps to upgrade your PMM Server while preserving your monitoring data and settings. In case of any issues, you can restore your system using the backup created in the preparation steps.
-
Stop the current container:
docker stop pmm-server -
Pull the latest image:
docker pull percona/pmm-server:3 -
Rename the original container:
docker rename pmm-server pmm-server-old -
Run the new container:
docker run \ --detach \ --restart always \ --publish 443:8443 \ --volumes-from pmm-server-old \ --name pmm-server \ percona/pmm-server:3 -
After upgrading, verify that PMM Server is running correctly and all your data is accessible. You can always restore your PMM Server using the backup you created above.