mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Fix DOCKER_HOST=tcp:// panic
Docker-DCO-1.1-Signed-off-by: Guillaume J. Charmes <guillaume.charmes@docker.com> (github: creack) Upstream-commit: 513d86488046bfd898f5f1fdab39bfb302607535 Component: engine
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user