Skip to content

Instantly share code, notes, and snippets.

@liujingyu
Created August 3, 2017 10:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save liujingyu/e4356a42a37fc1a37094cdcbc7853f6a to your computer and use it in GitHub Desktop.
Save liujingyu/e4356a42a37fc1a37094cdcbc7853f6a to your computer and use it in GitHub Desktop.
pmm-server docker搭建过程

pull images

docker pull percona/pmm-server

创建数据卷:

docker create -v /opt/prometheus/data -v /opt/consul-data -v /var/lib/mysql --name pmm-data percona/pmm-server /bin/true

创建容器:

docker run -d -p 80:80   --volumes-from pmm-data   --name pmm-server   -e SERVER_USER=jack   -e SERVER_PASSWORD=test@1234   --restart always   percona/pmm-server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment