<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_container_details(self, container_id_or_name: str) -> dict: """Get details of a container. Args: container_id_or_name (string):
 docker container id or name Returns: dict, details of the container """

        container = self._client.containers.get(container_id_or_name)
        return container.attrs