mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-04 20:51:44 +00:00
Fix panic for DOCKER_HOST without ://
Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
+2
-1
@@ -44,7 +44,8 @@ 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 {
|
||||
defaultHost, err := api.ValidateHost(defaultHost)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
flHosts = append(flHosts, defaultHost)
|
||||
|
||||
Reference in New Issue
Block a user