def set_input_container(_container, cfg):
    """Save the input for the container in the configurations."""
    if not _container:
        return False
    if _container.exists():
        cfg["container"]["input"] = str(_container)
        return True
    return False