MCPcopy Index your code
hub / github.com/SpaceNetLab/StarryNet / sn_get_container_info

Function sn_get_container_info

starrynet/sn_utils.py:235–243  ·  view source on GitHub ↗
(remote_machine_ssh)

Source from the content-addressed store, hash-verified

233
234
235def sn_get_container_info(remote_machine_ssh):
236 # Read all container information in all_container_info
237 all_container_info = sn_remote_cmd(remote_machine_ssh, "docker ps")
238 n_container = len(all_container_info) - 1
239 container_id_list = []
240 for container_idx in range(1, n_container + 1):
241 container_id_list.append(all_container_info[container_idx].split()[0])
242
243 return container_id_list
244
245
246def sn_delete_remote_network_bridge(remote_ssh):

Callers 3

create_nodesMethod · 0.70
runMethod · 0.70
__init__Method · 0.70

Calls 1

sn_remote_cmdFunction · 0.85

Tested by

no test coverage detected