mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-08-27 12:30:13 +03:00
docker_exec console: wrap exec command in while-true loop so sr_cli restarts on quit
This commit is contained in:
parent
486178d05c
commit
511c52330b
@ -1025,7 +1025,7 @@ class DockerVM(BaseNode):
|
||||
"Tty": True,
|
||||
"User": "root",
|
||||
"Env": ["TERM=xterm"],
|
||||
"Cmd": shlex.split(command),
|
||||
"Cmd": ["sh", "-c", f"while true; do {command}; done"],
|
||||
},
|
||||
)
|
||||
srv._exec_id = result["Id"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user