'Check for a specific minimum version of Docker on a remote node.'

def require_docker(self, required_version, cluster):

    client = get_docker_client(cluster, cluster.nodes[0].public_address)
    client_version = LooseVersion(client.version()['Version'])
    minimum_version = LooseVersion(required_version)
    if (client_version < minimum_version):
        self.skipTest('This    test    requires    at    least    Docker    {}.    Actual    version:    {}'.format(minimum_version, client_version))
