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:
commit
f46ac8c51c
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue