'Connect to the Docker server with the \'old school\' method'

def __connect_old(self, version):

    if hasattr(docker, 'APIClient'):
        init_docker = docker.APIClient
    elif hasattr(docker, 'Client'):
        init_docker = docker.Client
    else:
        logger.error('docker    plugin    -    Can    not    found    any    way    to    init    the    Docker    API')
        return None
    try:
        if WINDOWS:
            url = 'npipe:////./pipe/docker_engine'
        else:
            url = 'unix://var/run/docker.sock'
        if (version is None):
            ret = init_docker(base_url=url)
        else:
            ret = init_docker(base_url=url, version=version)
    except NameError:
        return None
    return ret
