mirror of
https://github.com/GNS3/gns3-server
synced 2025-01-12 00:50:56 +00:00
Prevent X11 socket file to be modified by Docker container
This commit is contained in:
parent
6a614fbd78
commit
d6e1ee5dbb
@ -406,7 +406,7 @@ class DockerVM(BaseNode):
|
|||||||
await self._start_vnc()
|
await 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("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/X{0}:/tmp/.X11-unix/X{0}:ro".format(self._display))
|
||||||
|
|
||||||
if self._extra_hosts:
|
if self._extra_hosts:
|
||||||
extra_hosts = self._format_extra_hosts(self._extra_hosts)
|
extra_hosts = self._format_extra_hosts(self._extra_hosts)
|
||||||
|
Loading…
Reference in New Issue
Block a user