def stopContainers(c): for ip in genIPlist(c.cntCommon): container = Container(ip, "", c) container.kill() #container.terminate() container.umount() printInfo("***")
def spawnContainers(c, fullLowerDir): for ip in genIPlist(c.cntCommon): container = Container(ip, fullLowerDir, c) printInfo("***") print(INFO("Trying to start container " + container.cName)) container.mountOverlayFS() container.spawn() container.checkStatus(full=False) print(INFO("Adding fingerprint to ssh known_hosts ")) container.checkSSH()
def checkContainers(c): for ip in genIPlist(c.cntCommon): container = Container(ip, "", c) container.checkStatus()
def names(c): for ip in genIPlist(c.cntCommon): container = Container(ip, "", c) print (container.cName)
def pids(c): for ip in genIPlist(c.cntCommon): container = Container(ip, "", c) print (container.getPID())