« 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
1 2 3 4 5 6 7 8 9 10 | 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 | 6 Comments »
November 2nd, 2024 at 21:45
… [Trackback]
[…] Find More Info here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
November 12th, 2024 at 16:47
… [Trackback]
[…] Information to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
November 19th, 2024 at 05:14
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
December 8th, 2024 at 19:19
… [Trackback]
[…] Read More Info here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
December 15th, 2024 at 22:50
… [Trackback]
[…] Find More on to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]
January 5th, 2025 at 03:52
… [Trackback]
[…] Read More on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]