Upgrade PMM Server Docker container¶
Upgrade your PMM Server Docker container to the latest version, ensuring you benefit from new features, improvements, and bug fixes while preserving your monitoring data and configuration.
Important
Downgrades are not possible. To go back to using a previous version you must have created a backup of it before upgrading.
Prerequisite: check current version¶
Before you start upgrading, check current PMM Server version:
```sh
docker exec -it pmm-server \
curl -ku admin:admin https://localhost/v1/version
```
For remote access, replace `localhost` with your PMM Server's address.
Upgrade procedure¶
To upgrade the container:
-
Stop the current PMM Server container:
docker stop pmm-server -
Create a backup of your current installation:
-
Pull the latest PMM Server image:
docker pull percona/pmm-server:3 -
Rename the original container to keep it as a fallback:
docker rename pmm-server pmm-server-old -
Run a new container with the latest image, connecting to your existing data. Make sure to adjust the volume parameter based on your setup (using
--volumes-fromfor container data,--volume pmm-data:/srvfor Docker volumes, or--volume /path/on/host:/srvfor host directories):docker run \ --detach \ --restart always \ --publish 443:8443 \ --volumes-from pmm-data \ --name pmm-server \ percona/pmm-server:3 -
Verify the upgrade was successful:
docker exec -it pmm-server \ curl -ku admin:admin https://localhost/v1/version -
Access the PMM web interface and confirm your dashboards and monitoring are working correctly.
Troubleshooting¶
If you encounter issues after upgrading:
- Check the PMM Server logs:
docker logs pmm-server - If the upgrade fails, revert to your previous version:
# Stop and remove the problematic container docker stop pmm-server docker rm pmm-server # Restore the backup docker rename pmm-server-backup pmm-server docker start pmm-server
Related topics¶
- Create a backup before upgrading
- Restore from backup if needed