How to install docker using yum in linux
This article mainly introduces how to use yum to install docker in linux, which is very detailed and has certain reference value. Friends who are interested must finish reading it!
Yum-y install docker*
Systemctl start docker
Yum-y install mariadb-server
Docker pull percona/pmm-server:1.0.6
Docker create\
-v / opt/prometheus/data\
-v / opt/consul-data\
-v / var/lib/mysql\
-v / var/lib/grafana\
-- name pmm-data\
Percona/pmm-server:1.0.6 / bin/true
Docker run-d\
-p 80:80\
-- volumes-from pmm-data\
-- name pmm-server\
-- restart always\
Percona/pmm-server:1.0.6
Docker start pmm-server
Docker stop pmm-server
Docker start pmm-server
Yum install pmm-client
Pmm-admin config-server 10.15.5.203
Pmm-admin add mysql:metrics-- host 10.15.5.203-- user=sbtest-- password=sbtest-- port 55118-- disable-tablestats
Pmm-admin list
Clean up monitored options:
Pmm-admin stop mysql:queries
Pmm-admin remove mysql:queries
Add an administrative account to the server
Docker ps
Docker exec-it 2dcafd7fea44 / bin/bash
Mysql
-- create a corresponding administrative account
Mysql > create user 'sbtest'@'%' identified by' sbtest'
Query OK, 0 rows affected (0.00 sec)
Mysql > grant all on *. * to sbtest
Query OK, 0 rows affected (0.00 sec)
Mysql > flush privileges
Query OK, 0 rows affected (0.00 sec)
The above is all the contents of the article "how to install docker with yum in linux". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!