diff --git a/libmachine/filestore.go b/libmachine/filestore.go index d2c4115848..aa2651ff68 100644 --- a/libmachine/filestore.go +++ b/libmachine/filestore.go @@ -126,6 +126,10 @@ func (s Filestore) GetActive() (*Host, error) { } dockerHost := os.Getenv("DOCKER_HOST") + if dockerHost == "" { + return nil, errors.New("DOCKER_HOST not set") + } + hostListItems := GetHostListItems(hosts) for _, item := range hostListItems {