code: def emit_containers(self, containers, verbose=True):
          
          containers = sorted(containers, key=lambda c: c.get('id'))
  
          if len(containers) == 1 and isinstance(containers, list):
              containers = containers[0]
  
          if verbose:
              return json.dumps(containers, indent=4, sort_keys=True)
          else:
              return json.dumps(containers)
docs: Emits the applications and sorts containers by name
  
          :param containers: List of the container definitions
          :type containers: list of dict
  
          :param verbose: Print out newlines and indented JSON
          :type verbose: bool
  
          :returns: The text output
          :rtype: str