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 an backup made prior to the upgrade.
-
Verify your current PMM version: Check your current PMM version by navigating to PMM Configuration > Updates or by running the following command:
sh docker exec -it pmm-server curl -ku admin:admin https://localhost:8443/v1/version
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:
sh docker stop pmm-server
-
Pull the latest image:
sh docker pull perconalab/pmm-server:3.0.0-beta
-
Rename the original container:
sh docker rename pmm-server pmm-server-old
-
Run the new container:
sh docker run \ --detach \ --restart always \ --publish 443:8443 \ --volumes-from pmm-data \ --name pmm-server \ perconalab/pmm-server:3.0.0-beta
-
After upgrading, verify that PMM Server is running correctly and all your data is accessible.
Get expert help¶
If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.