How to show X11 windows with Docker on Mac

<p>I never would have thought that I would need this feature. Up until now, I only used Docker to get some non-UI environments running, like a local PostgreSQL database or an Android build environment for GitLab CI.</p> <p>Right now I am part of a team called &lsquo;Happy Robots&rsquo; that works on the final project of Udacity&rsquo;s&nbsp;<a href="https://www.udacity.com/course/self-driving-car-engineer-nanodegree--nd013" rel="noopener ugc nofollow" target="_blank">Self-Driving Car Engineer Nanodegree</a>. That is: Writing and running&nbsp;<a href="https://github.com/andre-froehlich/CarND-Capstone" rel="noopener ugc nofollow" target="_blank">code</a>&nbsp;on an actual self-driving car!<br /> For running the code the 3 Mac users in our 5-person team are using a&nbsp;<a href="https://hub.docker.com/r/bydavy/carnd-capstone/" rel="noopener ugc nofollow" target="_blank">Docker image</a>&nbsp;running the ROS, which is only available for Linux. You might wonder why we would need a UI for running the algorithms, and you are right: We don&rsquo;t. But we included a dashboard built on the library pygame, which we use to render the track, current waypoints, position of the vehicle, traffic lights and their status and much more later on. This is quite helpful to visualize whether our algorithms behave correctly.&nbsp;</p> <p><a href="https://medium.com/@mreichelt/how-to-show-x11-windows-within-docker-on-mac-50759f4b65cb"><strong>Read More</strong></a></p>
Tags: Docker Mac