def get_container(self, container_id: str) -> dict[str, Any]:
        """
        Get the container with a given identifier.
        """
        containers = self.client.api.containers(filters={"id": container_id})
        if not containers:
            raise RuntimeError(f"Could not get container with id {container_id}")
        return cast(dict[str, Any], containers[0])

        Get the container with a given identifier.
        
core/testcontainers/core/docker_client.py