def get_service_details(self, service_id: str) -> dict:
        """Get details of a service.

        Only the manager nodes can retrieve service details

        Args:
            service_id (string): List of service id

        Returns:
            dict, details of the service

        """
        # Raise an exception if we are not a manager
        if not self._manager:
            raise RuntimeError('Only the Swarm manager node can retrieve all'
                               ' the services details.')

        service = self._client.services.get(service_id)
        return service.attrs