祺石业务运维监控分析系统(QS-WSM)

Docker

【操作步骤】

1、安装docker

yum install -y docker

2.启动docker服务

systemctl start docker.service
systemctl enable docker.service

3.查看状态

systemctl status docker

4 .监控配置

修改/usr/lib/systemd/system/docker.service
增加“-H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock”,修改完成后为:
[Service]
Type=notify
# the default is not to use systemd for cgroups because the delegate issues still
# exists and systemd currently does not support the cgroup feature set required
# for containers run by docker
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
ExecReload=/bin/kill -s HUP $MAINPID
TimeoutSec=0
RestartSec=2
Restart=always

(2)加载新的配置文件

systemctl daemon-reload

(3)重新启动docker

systemctl restart docker

[监控地址]    http://10.10.2.47:2375/