code: def stop(self, *args):
          
  
          if self.volumes: 
              volumes = " --bind " + " --bind ".join(self.volumes)
          else:
              volumes = ""
          
          self._print("Stopping container [{}]. The container ID is printed below.".format(self.name))
          utils.xrun("singularity", ["instance.stop {0:s}".format(self.name)])
  
          self.status = "exited"
  
          return 0
docs: Stop a singularity container instance