In order to run Xorg apps on macOS you will need to install xquartz:
brew install --cask --no-quarantine xquartzAnd then configure it
A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY. Works on both Intel and M1 macs!
This guide was tested on: