Start XQuartz (open -a Quartz) before running your container, you may have to enable the option Security/Allow connections from network client. After that you can run your container and make sure that you have /tmp/.X11-unix mounted.
I am able to get Webstorm run in native Docker container this way.