Skip to content

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:

  1. Create a backup before upgrading, as downgrades are not possible. Therefore, reverting to a previous version requires an backup made prior to the upgrade.

  2. 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.

  1. Stop the current container:

    sh docker stop pmm-server

  2. Back up your data.

  3. Pull the latest image:

    sh docker pull percona/pmm-server:3

  4. Rename the original container:

    sh docker rename pmm-server pmm-server-old

  5. Run the new container:

    sh docker run \ --detach \ --restart always \ --publish 443:8443 \ --volumes-from pmm-data \ --name pmm-server \ percona/pmm-server:3

  6. After upgrading, verify that PMM Server is running correctly and all your data is accessible.

Get expert help

If you need assistance, you can find comprehensive and free database knowledge on our community forum or blog posts. For professional support and services, contact our Percona Database Experts.