<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by João Dias on Medium]]></title>
        <description><![CDATA[Stories by João Dias on Medium]]></description>
        <link>https://medium.com/@joaoacdias?source=rss-70c30aa1fae5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*POQX8B3HjdHZue9jRR06UQ.jpeg</url>
            <title>Stories by João Dias on Medium</title>
            <link>https://medium.com/@joaoacdias?source=rss-70c30aa1fae5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 15:04:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joaoacdias/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to run GUI stuff inside a Docker container using Docker for Mac]]></title>
            <link>https://medium.com/@joaoacdias/how-to-run-gui-stuff-inside-a-docker-container-using-docker-for-mac-5e133f22bf5e?source=rss-70c30aa1fae5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e133f22bf5e</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[João Dias]]></dc:creator>
            <pubDate>Mon, 21 Nov 2016 23:18:02 GMT</pubDate>
            <atom:updated>2016-11-21T23:53:02.096Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*uoHYxwC8IPQhjmVK0LXM2w.png" /></figure><p>I used to have a flow to set up a display for my Docker containers when the Mac version used boot2docker. However when I made the update for Docker for Mac unexpectably my displays were gone and I was really annoyed with that. Then I went out there trying to find a solution and it was not easy.</p><p>But, guess what: <strong>It actually came out to be really simple</strong> 😆 I found the solution in <a href="https://forums.docker.com/t/x11-forwarding-issues-with-release-10/11252/5">Docker forum</a> and I decided to write more about it here. Theoritically the solution stills the same as with boot2docker, however with subtle different configurations. Fire up a XQuartz and then forward Docker display to it.</p><p>I will use an Intellij container that you can pull from snellm/intellij with</p><p>docker pull snellm/intellij</p><p>But of course you can use whatever image you want. Anything that as a GUI I mean 😅</p><h3>Get XQuartz</h3><p>First thing is to get XQuartz for Mac. XQuartz is a version of the X.Org X Window System that runs on OS X. Go and get the latest version <a href="https://www.xquartz.org/">here</a>. Install and then move on to the next step.</p><h3>Launch that XQuartz</h3><p>First you need some little config job. Open up XQuartz</p><p>open -a Xquartz</p><p>Go to preferences and then to the security tab and check “Allow connection from network clients”. Then restart XQuartz and check whether it is listening to the port 6000</p><p>lsof -i :6000</p><h3>Get your machine IP</h3><p>Create an environment variable with your IP</p><p>ip=$(ifconfig en0 | grep inet | awk &#39;$1==&quot;inet&quot; {print $2}&#39;) &amp;&amp; echo &quot;My IP is: $ip&quot;</p><h3>Tell your machine: It is ok to talk with XQuartz</h3><p>xhost + ${ip}</p><h3>Fire up your container</h3><p>Get your container up and running. If you are not using docker-compose fire it up like this</p><p>docker run -d --name intellij -e DISPLAY=${ip}:0 -v /tmp/.X11-unix:/tmp/.X11-unix snellm/intellij</p><p>Yes. That’s it. You can now use any GUI app inside Docker. Hope it helps ⚔</p><p><em>Originally published at </em><a href="https://joaodias.github.io/blog/post/dockerdisplay"><em>joaodias.github.io</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e133f22bf5e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>