0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Flock CLI: starting containers

This commit is contained in:
Maria Matejka 2024-09-27 13:22:04 +02:00
parent e4981ce012
commit 8e5c2a67c1

View File

@ -92,7 +92,13 @@ def telnet(name: str):
@handler
def container_start(hypervisor: str, name: str):
print(f"start a machine {name} in {hypervisor}")
for k,v in msg(hypervisor, { 3: {
0: name,
1: 1,
2: bytes(DEFAULT_RUN_PATH / hypervisor / name),
3: b"/",
}}).items():
print(k,v)
try:
binname = sys.argv.pop(0)