comment the return of setHelpFunc in order to show --help even if the daemon is not running. Then add a if statement in isSupported function to check if the daemon is running
revert change on docker.go, set HasExperimental to true in cli.go
@@ -202,6 +202,9 @@ func (cli *DockerCli) Initialize(opts *cliflags.ClientOptions) error {
if versions.LessThan(ping.APIVersion, cli.client.ClientVersion()) {
cli.client.UpdateClientVersion(ping.APIVersion)
}
+ } else {
+ // Default to true if we fail to connect to daemon
+ cli.server = ServerInfo{HasExperimental: true}
}
return nil
