Add comment

pull/9343/head
Thomas Stromberg 2020-09-28 11:27:05 -07:00
parent 96e35e0d70
commit 1ffd800c29
1 changed files with 1 additions and 0 deletions

View File

@ -128,6 +128,7 @@ func status() registry.State {
stderr := strings.TrimSpace(string(exitErr.Stderr))
newErr := fmt.Errorf(`%q %v: %s`, strings.Join(cmd.Args, " "), exitErr, stderr)
// Oddly enough, the underlying connection error is in stdout rather than stderr
if strings.Contains(stderr, "errors pretty printing info") || dockerNotRunning(string(o)) {
return registry.State{Error: err, Installed: true, Running: false, Healthy: false, Fix: "Start the Docker service", Doc: docURL}
}