Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

According to this article https://www.cloudsavvyit.com/10520/how-to-run-gui-applications-in-a-docker-container/ you run some security risks when you open up an X socket, but you reduce the risks massively by not running --privileged.

Some extra info here about not running a container as root

https://www.thegeekdiary.com/run-docker-as-a-non-root-user/

This is maybe a bit late for you but hopefully will help anyone else who finds this working but insecure answer.