Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error "Could not connect to any X display" #2

Open
cmzambranat opened this issue Sep 15, 2019 · 0 comments
Open

Error "Could not connect to any X display" #2

cmzambranat opened this issue Sep 15, 2019 · 0 comments

Comments

@cmzambranat
Copy link

I found an error when running qgis_run.sh file:

Files dir:/Users/uyuni/qgis34-files
Preferences dir:/Users/uyuni/.qgis34-docker
root@0aed1466fdea:~# qgis
Warning: QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
Warning: QXcbConnection: Could not connect to display /private/tmp/com.apple.launchd.vYkqXEn8SJ/org.macosforge.xquartz:0
Critical: Could not connect to any X display.

I was able to fix by editing qgis_run.sh to:

docker run -ti  --rm \
	-e DISPLAY=$(ipconfig getifaddr en0):0 \
	-v /tmp/.X11-unix:/tmp/.X11-unix \
	-v $my_homedir:/mnt/ext_home/ \
	-v $my_files_dir:/root/qgis36-files \
	-v $my_profile_dir:/root/ \
	rafdouglas/qgis_desktop:latest

A few notes:

  1. last line needs to be changed from rafdouglas/qgis_desktop:3.6 to rafdouglas/qgis_desktop:latest. Otherwise it will look for QGIS v3.6
  2. might be worth it to maintain the same directory names as the QGIS version. Currently directory names are qgis34-files and docker image is 3.8.0
  3. I'm using a Mac OS 10.14.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant