Exemple #1
0
def stopContainers(c):
    for ip in genIPlist(c.cntCommon):
        container = Container(ip, "", c)
        container.kill()
        #container.terminate()
        container.umount()
        printInfo("***")
Exemple #2
0
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()
Exemple #3
0
def checkContainers(c):
    for ip in genIPlist(c.cntCommon):
        container = Container(ip, "", c)
        container.checkStatus()
Exemple #4
0
def names(c):
    for ip in genIPlist(c.cntCommon):
        container = Container(ip, "", c)
        print (container.cName)
Exemple #5
0
def pids(c):
    for ip in genIPlist(c.cntCommon):
        container = Container(ip, "", c)
        print (container.getPID())