mirror of https://github.com/docker/docs.git
Merge pull request #4187 from creack/fix_hostflag_panic
Fix DOCKER_HOST=tcp:// panic
This commit is contained in:
commit
24498a896f
|
@ -58,6 +58,9 @@ func main() {
|
||||||
// If we do not have a host, default to unix socket
|
// If we do not have a host, default to unix socket
|
||||||
defaultHost = fmt.Sprintf("unix://%s", api.DEFAULTUNIXSOCKET)
|
defaultHost = fmt.Sprintf("unix://%s", api.DEFAULTUNIXSOCKET)
|
||||||
}
|
}
|
||||||
|
if _, err := api.ValidateHost(defaultHost); err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
flHosts.Set(defaultHost)
|
flHosts.Set(defaultHost)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue