code: def get_volume_list(self) -> list:
          
          # Initialising empty list
          volumes = []
  
          # 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.')
  
          volume_list = self._client.volumes.list()
          for v_list in volume_list:
              volumes.append(v_list.name)
          return volumes
docs: Get a list of docker volumes.
  
          Only the manager nodes can retrieve all the volumes
  
          Returns:
              list, all the names of the volumes in swarm