Merge pull request #4187 from creack/fix_hostflag_panic

Fix DOCKER_HOST=tcp:// panic
This commit is contained in:
Victor Vieux 2014-02-17 11:43:53 -08:00
commit 24498a896f

View file

@ -58,6 +58,9 @@ func main() {
// If we do not have a host, default to unix socket
defaultHost = fmt.Sprintf("unix://%s", api.DEFAULTUNIXSOCKET)
}
if _, err := api.ValidateHost(defaultHost); err != nil {
log.Fatal(err)
}
flHosts.Set(defaultHost)
}