mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-26 08:48:11 +00:00
parent
e82862c69f
commit
bb0db7846f
@ -302,6 +302,7 @@ class DockerVM(BaseVM):
|
|||||||
|
|
||||||
if self._console_type == "vnc":
|
if self._console_type == "vnc":
|
||||||
yield from self._start_vnc()
|
yield from self._start_vnc()
|
||||||
|
params["Env"].append("QT_GRAPHICSSYSTEM=native") # To fix a Qt issue: https://github.com/GNS3/gns3-server/issues/556
|
||||||
params["Env"].append("DISPLAY=:{}".format(self._display))
|
params["Env"].append("DISPLAY=:{}".format(self._display))
|
||||||
params["HostConfig"]["Binds"].append("/tmp/.X11-unix/:/tmp/.X11-unix/")
|
params["HostConfig"]["Binds"].append("/tmp/.X11-unix/:/tmp/.X11-unix/")
|
||||||
|
|
||||||
|
@ -189,6 +189,7 @@ def test_create_vnc(loop, project, manager):
|
|||||||
"container=docker",
|
"container=docker",
|
||||||
"GNS3_MAX_ETHERNET=eth0",
|
"GNS3_MAX_ETHERNET=eth0",
|
||||||
"GNS3_VOLUMES=/etc/network",
|
"GNS3_VOLUMES=/etc/network",
|
||||||
|
"QT_GRAPHICSSYSTEM=native",
|
||||||
"DISPLAY=:42"
|
"DISPLAY=:42"
|
||||||
],
|
],
|
||||||
"Entrypoint": ["/gns3/init.sh"],
|
"Entrypoint": ["/gns3/init.sh"],
|
||||||
|
Loading…
Reference in New Issue
Block a user