1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #14162 from dnozay/patch-1

more friendly message for when docker daemon is not running.
This commit is contained in:
Alexander Morozov 2015-06-26 09:27:21 -07:00
commit f46ac8c51c

View file

@ -89,7 +89,7 @@ func (cli *DockerCli) clientRequest(method, path string, in io.Reader, headers m
}
if cli.tlsConfig == nil {
return nil, nil, statusCode, fmt.Errorf("%v. Are you trying to connect to a TLS-enabled daemon without TLS?", err)
return nil, nil, statusCode, fmt.Errorf("%v.\n* Are you trying to connect to a TLS-enabled daemon without TLS?\n* Is your docker daemon up and running?", err)
}
return nil, nil, statusCode, fmt.Errorf("An error occurred trying to connect: %v", err)
}