Run Docker with volume¶
To run Docker with volume:
-
Pull the image:
docker pull percona/pmm-server:3 -
Create a volume:
docker volume create pmm-data -
Run the image:
docker run --detach --restart always \ --publish 443:8443 \ --env PMM_WATCHTOWER_HOST=your_watchtower_host \ --env PMM_WATCHTOWER_TOKEN=your_watchtower_token \ --volume pmm-data:/srv \ --network=pmm-network \ --name pmm-server \ percona/pmm-server:3 -
Change the password for the default
adminuser, replacingyour_secure_passwordwith a strong, unique password:docker exec -t pmm-server change-admin-password your_secure_password -
Visit
https://localhost:443to see the PMM user interface in a web browser. If you are accessing the Docker host remotely, replacelocalhostwith the IP or server name of the host.