MCPcopy Create free account
hub / github.com/SpaceNetLab/StarryNet / sn_get_container_info

Function sn_get_container_info

starrynet/sn_orchestrater.py:267–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265
266
267def sn_get_container_info():
268 # Read all container information in all_container_info
269 with os.popen("docker ps") as f:
270 all_container_info = f.readlines()
271 n_container = len(all_container_info) - 1
272
273 container_id_list = []
274 for container_idx in range(1, n_container + 1):
275 container_id_list.append(all_container_info[container_idx].split()[0])
276
277 return container_id_list
278
279
280def sn_establish_GSL(container_id_list, matrix, GS_num, constellation_size, bw,

Callers 1

sn_orchestrater.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected