maple.utils.cleanup.CleanupManager.register_container

CleanupManager.register_container(container_id: str, name: str = None)

Register a Docker container for automatic cleanup.

Adds the container to the cleanup registry. The container will be stopped and removed when cleanup_all() is called.

Parameters:
  • container_id – Docker container ID to register.

  • name – Optional human-readable name for logging purposes.