'Create a list of available capabilities'

def _check_capabilities(self):

    api_version = self.client.version()['ApiVersion']
    for (cap, req_vers) in self._cap_ver_req.items():
        if ((self.docker_py_versioninfo >= req_vers[0]) and (docker.utils.compare_version(req_vers[1], api_version) >= 0)):
            self._capabilities.add(cap)
