code: def container_exit_code(container_id: str) -> Optional[int]:
      
      container = docker_client.containers.get(container_id)
      return container.wait()["StatusCode"]
docs: :raises docker.errors.NotFound
      :raises docker.errors.APIError