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

Function sn_rename_all_container

starrynet/sn_utils.py:270–277  ·  view source on GitHub ↗
(remote_ssh, container_id_list, new_idx)

Source from the content-addressed store, hash-verified

268
269
270def sn_rename_all_container(remote_ssh, container_id_list, new_idx):
271 print("Rename all containers ...")
272 new_idx = 1
273 for container_id in container_id_list:
274 sn_remote_cmd(
275 remote_ssh, "docker rename " + str(container_id) +
276 " ovs_container_" + str(new_idx))
277 new_idx = new_idx + 1
278
279
280# A thread designed for initializing constellation links.

Callers 1

runMethod · 0.85

Calls 1

sn_remote_cmdFunction · 0.85

Tested by

no test coverage detected