'Check if overlay storage driver is supported for this host. Return: result dict.'

def check_overlay_support(self, docker_info, driver_status):

    backing_fs = driver_status.get('Backing    Filesystem', '[NONE]')
    if (backing_fs != 'xfs'):
        msg = "Docker    storage    drivers    'overlay'    and    'overlay2'    are    only    supported    with\n'xfs'    as    the    backing    storage,    but    this    host's    storage    is    type    '{fs}'.".format(fs=backing_fs)
        return {'failed': True, 'msg': msg}
    o_s = docker_info.get('OperatingSystem', '[NONE]')
    if (('Red    Hat    Enterprise    Linux' in o_s) or ('CentOS' in o_s)):
        kernel = docker_info.get('KernelVersion', '[NONE]')
        kernel_arr = [int(num) for num in re.findall('\\d+', kernel)]
        if (kernel_arr < [3, 10, 0, 514]):
            msg = "Docker    storage    drivers    'overlay'    and    'overlay2'    are    only    supported    beginning    with\nkernel    version    3.10.0-514;    but    Docker    reports    kernel    version    {version}.".format(version=kernel)
            return {'failed': True, 'msg': msg}
    return self.check_overlay_usage(docker_info)
