yum install -y docker
systemctl start docker.service
systemctl enable docker.service
systemctl status docker
修改/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/