Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install docker using yum in linux

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report