def list_containers(self):
data = run_cmd(["<STR_LIT>", "<STR_LIT:list>", "<STR_LIT>", "<STR_LIT>"],<EOL>return_output=True)<EOL>output = []<EOL>reg = re.compile(r"<STR_LIT>")<EOL>for line in data.split("<STR_LIT:\n>"):<EOL><INDENT>stripped = line.strip()<EOL>if stripped:<EOL><INDENT>parts = reg.split(stripped)<EOL>name = parts[<NUM_LIT:0>]<EOL>output.append(self.ContainerClass(None, None, name=name))<EOL><DEDENT><DEDENT>return output<EOL>
list all available nspawn containers

:return: collection of instances of :class:`conu.backend.nspawn.container.NspawnContainer`