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

12 Responses to “Running a GUI application in Docker”

  1. harem77 Says:
    June 28th, 2024 at 19:45

    … [Trackback]

    […] There you will find 32929 additional Information on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  2. namo333 Says:
    July 15th, 2024 at 21:22

    … [Trackback]

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

  3. เว็บปั้มติดตาม Says:
    August 4th, 2024 at 19:18

    … [Trackback]

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

  4. LSM99 เว็บหวยออนไลน์ บาทละ 1000 Says:
    August 7th, 2024 at 20:09

    … [Trackback]

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

  5. ประวัติความเป็นมา saba sport Says:
    August 16th, 2024 at 00:31

    … [Trackback]

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

  6. echome Says:
    August 24th, 2024 at 22:29

    … [Trackback]

    […] There you will find 55879 more Info on that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  7. ข้อดีและข้อเสียของเว็บนอก sportsbetting Says:
    September 3rd, 2024 at 19:00

    … [Trackback]

    […] There you can find 37656 additional Info to that Topic: compdigitec.com/labs/2021/01/30/running-a-gui-application-in-docker/ […]

  8. dultogel promo Says:
    September 22nd, 2024 at 19:24

    … [Trackback]

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

  9. บาคาร่าเกาหลี Says:
    September 22nd, 2024 at 22:23

    … [Trackback]

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

  10. แทงบอล Says:
    September 23rd, 2024 at 22:00

    … [Trackback]

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

  11. cartel carts Says:
    October 1st, 2024 at 22:22

    … [Trackback]

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

  12. Graduate Studies Says:
    October 20th, 2024 at 05:09

    … [Trackback]

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

Comments