X11 forwarding between macOS and Docker

  • Start Xquartz

  • Go to Settings > Security

  • make sure to select “Allow connections from network clients”