Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    Note that turning off security is not something that should be done for machines which might be subject to attacks, i.e. anything connected to the Internet. Commented May 11, 2021 at 15:15
  • Thank you for this comment. I looked for a more secure way to allow the docker container to access to the display and I found this : computerhope.com/unix/xhost.htm stackoverflow.com/questions/43015536/… So I replaced xhost + by xhost +local:root and it works (you can do xhost - if you previously allow access to everyone with xhost +) Is it safe enough ? Commented May 18, 2021 at 0:27
  • Everything is a tradeoff. I would put the extra time in to have authorization enabled rather than not. If only you log into the machine then the restricted xhost plus is probably good enough. Commented May 18, 2021 at 9:12