Compdigitec Labs

« | Home | »

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 | 19 Comments »

19 Responses to “Running a GUI application in Docker”

  1. Online Runtz shop Says:
    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/ […]

  2. Cenforce 100mg Says:
    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/ […]

  3. clash Says:
    March 8th, 2022 at 09:50

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  4. 강남레깅스룸 Says:
    March 10th, 2022 at 12:26

    … [Trackback]

    […] Information on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  5. DevOps Companies Says:
    April 20th, 2022 at 11:05

    … [Trackback]

    […] Find More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  6. https://jobresumewritinghelp.com Says:
    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/ […]

  7. Devops Advice Says:
    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/ […]

  8. psilocin and serotonin Says:
    June 1st, 2022 at 07:41

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  9. real cvv Says:
    June 7th, 2022 at 13:23

    … [Trackback]

    […] Read More here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  10. prima diet review Says:
    June 17th, 2022 at 12:40

    … [Trackback]

    […] Find More Information here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  11. ปั่นสล็อต Says:
    June 23rd, 2022 at 10:07

    pg-slot.game เว็บ ปั่นสล็อต ออนไลน์ คุณภาพได้เงินจริง 100 % สามารถเล่นได้ตลอด 24 ชั่วโมง เล่นง่าย ได้เงินไว เล่นได้บนมือถือ

  12. good cvv2 shop Says:
    June 24th, 2022 at 00:19

    … [Trackback]

    […] Read More Information here on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  13. Digital transformation company Says:
    July 1st, 2022 at 14:52

    … [Trackback]

    […] Read More Info here to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  14. Buy Guns Online Says:
    August 2nd, 2022 at 23:19

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  15. สล็อตวอเลท ไม่มีขั้นต่ำ Says:
    August 4th, 2022 at 19:35

    … [Trackback]

    […] Read More on on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  16. Henry Firearms In Stock Says:
    August 28th, 2022 at 00:23

    … [Trackback]

    […] Read More to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  17. Shrooms for sale near me Says:
    August 31st, 2022 at 13:28

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  18. pg slot Says:
    September 10th, 2022 at 12:57

    pg slot สำหรับผู้ใดกันที่กำลังมองหาเว็บไซต์รวมสล็อต pgslot ที่ดีเยี่ยมที่สุดศูนย์รวมค่ายเกมชั้นหนึ่งก็เกม slotxo เยอะเอามาไว้ภายในเว็บไซต์แห่งนี้บริการระบบฝาก-ถอนแบบออโต้

  19. sportsbet Says:
    September 15th, 2022 at 21:38

    … [Trackback]

    […] Find More on on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

Comments