show networks
@@ -89,7 +89,11 @@ class Scheduler(object):
os.environ['INFRABOX_DOCKER_REGISTRY'] + '/job'
]
+ try:
execute(cmd)
+ except:
+ execute(['docker', 'network', 'ls']
+ pass
def schedule_job(self, job_id, cpu, memory):
cursor = self.conn.cursor()
