provide better solution message

pull/8487/head
Medya Gh 2020-06-15 14:52:31 -07:00
parent 804e772efd
commit bb6c84f7ad
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func status() registry.State {
return registry.State{Error: newErr, Installed: true, Healthy: false, Fix: "Add your user to the 'docker' group: 'sudo usermod -aG docker $USER && newgrp docker'", Doc: "https://docs.docker.com/engine/install/linux-postinstall/"}
}
if strings.Contains(stderr, "Cannot connect") || strings.Contains(stderr, "refused") || strings.Contains(stderr, "Is the docker daemon running") {
if strings.Contains(stderr, "Cannot connect") || strings.Contains(stderr, "refused") || strings.Contains(stderr, "Is the docker daemon running") || strings.Contains(output, "docker daemon is not running") {
return registry.State{Error: newErr, Installed: true, Healthy: false, Fix: "Start the Docker service", Doc: docURL}
}