Skip to content

Run Docker with volume

To run Docker with volume:

  1. Pull the image.

    docker pull percona/pmm-server:2
    
  2. Create a volume:

    docker volume create pmm-data
    
  3. Run the image:

    docker run --detach --restart always \
    --publish 443:443 \
    -v pmm-data:/srv \
    --name pmm-server \
    percona/pmm-server:2
    
  4. Change the password for the default admin user.

    • For PMM versions 2.27.0 and later:

      docker exec -t pmm-server change-admin-password <new_password>
      
    • For PMM versions prior to 2.27.0:

      docker exec -t pmm-server bash -c 'grafana-cli --homepath /usr/share/grafana --configOverrides cfg:default.paths.data=/srv/grafana admin reset-admin-password newpass'
      
  5. Visit https://localhost:443 to see the PMM user interface in a web browser. (If you are accessing the docker host remotely, replace localhost with the IP or server name of the host.)

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.


Last update: 2024-02-19