docker健康检查脚本

docker健康检查脚本

Scroll Down
#!/bin/bash 
if [ "$(ps -ef | grep "/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock"| grep -v grep )" == "" ] 
  then 
  systemctl start containerd
  systemctl start docker
fi