A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY.
This guide was tested on:
- macOS Catalina 10.15.4
- docker desktop 2.2.0.5 (43884) - stable release
- XQuartz 2.7.11 (xorg-server 1.18.4)
Works also with:
- macOS Monterey 12.5 (21G72)