« Creating a service to run a systemd-nspawn server | Home | Epson DS-30 on Ubuntu Linux »
Running a GUI application in Docker
By admin | January 30, 2021
apt-get update && apt-get install -y openssh-server vim xpra # Allow container to connect to GUI? xhost + docker run --rm -v /tmp/.X11-unix:/tmp/.X11-unix -p 2222:2222 -e DISPLAY --security-opt seccomp:unconfined -it <image> bash sudo mkdir -p /run/user/1000 sudo chown ubuntu:ubuntu /run/user/1000 xpra start ssh:ubuntu@localhost:2222 --exit-with-children --start-child="xfce4-terminal"
If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!
Topics: Linux | 7 Comments »
February 25th, 2022 at 08:11
… [Trackback]
[…] Read More Information here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
February 27th, 2022 at 02:50
… [Trackback]
[…] Find More Information here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
March 8th, 2022 at 09:50
… [Trackback]
[…] Read More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
March 10th, 2022 at 12:26
… [Trackback]
[…] Information on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
April 20th, 2022 at 11:05
… [Trackback]
[…] Find More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
April 28th, 2022 at 15:01
… [Trackback]
[…] Read More Info here on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
May 19th, 2022 at 18:14
… [Trackback]
[…] Read More Information here on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]