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:
parent
228e397b97
commit
a5559adab0
1 changed files with 10 additions and 0 deletions
10
bin/doctor
10
bin/doctor
|
@ -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__ "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue