Merge pull request #195 from Zebrilee/fix-issue-114
fix the issue `--help` doesn't work if daemon is not available
This commit is contained in:
commit
760f847bc8
@ -202,6 +202,9 @@ func (cli *DockerCli) Initialize(opts *cliflags.ClientOptions) error {
|
|||||||
if versions.LessThan(ping.APIVersion, cli.client.ClientVersion()) {
|
if versions.LessThan(ping.APIVersion, cli.client.ClientVersion()) {
|
||||||
cli.client.UpdateClientVersion(ping.APIVersion)
|
cli.client.UpdateClientVersion(ping.APIVersion)
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
// Default to true if we fail to connect to daemon
|
||||||
|
cli.server = ServerInfo{HasExperimental: true}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user