I am looking into on how to run QGIS-desktop in Docker.
- I am running on Ubuntu 19.
- Docker version 19.03.12, build 48a66213fe
- docker-compose version 1.23.2, build 1110ad01
Here is the repo by Kartoza (https://github.com/kartoza/docker-qgis-desktop).
And here is the example from the page:
db: image: kartoza/postgis:9.4-2.1 environment: - USERNAME=docker - PASS=docker qgisdesktop: image: kartoza/qgis-desktop:2.14 hostname: qgis-server volumes: # Wherever you want to mount your data from - ./gis:/gis # Unix socket for X11 - /tmp/.X11-unix:/tmp/.X11-unix links: - db:db environment: - DISPLAY=unix:1 command: /usr/bin/qgis
So I am failing on the
DISPLAY=unix:1 environment variable
and the error is like this:
qgisdesktop_1 | Warning: qgis: cannot connect to X server unix:1
Is my problem to be found there or is it something else ?