{"id":434,"date":"2021-01-30T20:51:00","date_gmt":"2021-01-31T01:51:00","guid":{"rendered":"http:\/\/www.compdigitec.com\/labs\/?p=434"},"modified":"2021-02-16T20:54:37","modified_gmt":"2021-02-17T01:54:37","slug":"running-a-gui-application-in-docker","status":"publish","type":"post","link":"http:\/\/www.compdigitec.com\/labs\/2021\/01\/30\/running-a-gui-application-in-docker\/","title":{"rendered":"Running a GUI application in Docker"},"content":{"rendered":"<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\napt-get update &amp;&amp; apt-get install -y openssh-server vim xpra\n\n# Allow container to connect to GUI?\nxhost +\ndocker run --rm -v \/tmp\/.X11-unix:\/tmp\/.X11-unix -p 2222:2222 -e DISPLAY --security-opt seccomp:unconfined -it &lt;image&gt; bash\n\nsudo mkdir -p \/run\/user\/1000\nsudo chown ubuntu:ubuntu \/run\/user\/1000\n\nxpra start ssh:ubuntu@localhost:2222 --exit-with-children --start-child=&quot;xfce4-terminal&quot;\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[899,917,918,921,919,920],"_links":{"self":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/434"}],"collection":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/comments?post=434"}],"version-history":[{"count":0,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/posts\/434\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/media?parent=434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/categories?post=434"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.compdigitec.com\/labs\/wp-json\/wp\/v2\/tags?post=434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}