mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix panic for DOCKER_HOST without ://
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
parent
a05d8d4f4f
commit
660cc4a267
1 changed files with 2 additions and 1 deletions
|
@ -44,7 +44,8 @@ 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 {
|
defaultHost, err := api.ValidateHost(defaultHost)
|
||||||
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
flHosts = append(flHosts, defaultHost)
|
flHosts = append(flHosts, defaultHost)
|
||||||
|
|
Loading…
Add table
Reference in a new issue