parameters: (self, container_id, alive=True)
docstring: Gracefully stop a running container.
docstring_summary: Gracefully stop a running container.
docstring_tokens: Gracefully stop a running container .
function: def shutdown_notebook_server(self, container_id, alive=True):
          '''Gracefully stop a running container.'''
  
          if alive:
              yield self._with_retries(self.docker_client.stop, container_id)
          yield self._with_retries(self.docker_client.remove_container, container_id)
function_tokens: def shutdown_notebook_server ( self , container_id , alive = True ) : if alive : yield self . _with_retries ( self . docker_client . stop , container_id ) yield self . _with_retries ( self . docker_client . remove_container , container_id )