def get_container_volumes(c):
    """Extract volume names.

    Extracts the volume names for a container.

    Args:
        c: Container dictionary from portainer api
    Returns:
        List of attached volume names

    """
    return list(map(lambda x: x['Name'], filter(lambda x: x['Type'] == 'volume', c['Mounts'])))