1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Check if the docker daemon is running

This commit is contained in:
Shane Kilkelly 2020-06-02 15:18:46 +01:00
parent 228e397b97
commit a5559adab0

View file

@ -96,10 +96,20 @@ function check_dependencies() {
done
}
function check_docker_daemon() {
print_heading "Docker Daemon"
if docker ps &>/dev/null; then
print_sub_point "status: up"
else
print_sub_point "status: down"
fi
}
function __main__() {
print_doctor_header
check_host_information
check_dependencies
check_docker_daemon
}
__main__ "$@"