When running the DR1 docker on a macOSx, silicon M1
No errors are encountered when following the steps in Section 5.3.3 (Getting GUIs to work). However, then trying to run fv results in the error "couldn't connect to display "host.docker.internal:0"". Thanks!
Setting DISPLAY variable in Docker
- AlainGueguen
- Posts: 36
- Joined: Mon Jun 28, 2021 12:06 pm
Re: Setting DISPLAY variable in Docker
This problem is related to the security settings on Mac.
In this environment, to enable X11 forward via Xquartz, one must configure these security settings.
a good explanation, tested on Mac Silicon M1 Sonoma, can be found
[url]here:https://gist.github.com/sorny/969fe55d8 ... a31cbcb088[/url].
the most important part of this page is the step-by-step section :
In this environment, to enable X11 forward via Xquartz, one must configure these security settings.
a good explanation, tested on Mac Silicon M1 Sonoma, can be found
[url]here:https://gist.github.com/sorny/969fe55d8 ... a31cbcb088[/url].
the most important part of this page is the step-by-step section :
Code: Select all
Step-By-Step Guide
1)Install XQuartz via brew (if not done yet )
$ brew install --cask xquartz
2)Logout and login of your Mac to activate XQuartz as the default X11 server
3)Start XQuartz
$ open -a XQuartz
4) Go to Security Settings and ensure that "Allow connections from network clients" is on
(menu XQuartz > Settings> Tab Security
Check the Allow connections from network clients
5) Restart your Mac and start XQuartz again
$ open -a XQuartz
6) 7) 8) are the extra steps to check that the configuration was correctly modified