mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix DOCKER_HOST=tcp:// panic
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack)
This commit is contained in:
parent
f3ff190491
commit
513d864880
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue