def validate_compose(dicts):
    """Check whether the given Docker Compose file contains more than one containers

    Args:
        dicts (dictionary): Dictionary containing Docker Compose contents

    Returns:
        string: name of the container
    """
    dict = dicts["services"]
    if len(dict) > 1:
        print(
            "Docker compose file can't have more than one containers. Exiting..."
        )
        raise ValueError("Docker compose file has more than one container")
    name = next(iter(dict))
    return name