To run on Linux using your display for the GUI:
xhost local:root
docker run -i -d --rm --ipc "host" -v /tmp/.X11-unix/:/tmp/.X11-unix/ \
-v $HOME/.qgis:/root/.local/share/QGIS \
-v $(pwd):/home/dir_name \
-e DISPLAY \
vlandau/qgis:3.4.10
Volume mounting /root/.local/share/QGIS with local directory will allow QGIS settings to be saved and preserved across QGIS Docker sessions
# Dockerfile to build qgis
# Written by Vincent Landau ([email protected])
FROM ubuntu:18.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
gnupg2 \
ca-certificates
RUN echo "deb https://qgis.org/ubuntu-ltr bionic main" | tee -a /etc/apt/sources.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-key CAEB3DC3BDF7FB45
RUN apt-get update && \
apt-get install -y --no-install-recommends \
tzdata
RUN apt-get install -y --no-install-recommends \
qgis \
python3-qgis \
qgis-plugin-grass
# Fix time zone to Denver. Edit this to use your local time zone
RUN ln -fs /usr/share/zoneinfo/America/Denver /etc/localtime && \
dpkg-reconfigure --frontend noninteractive tzdata
CMD ["qgis"]
Content type
Image
Digest
Size
314.7 MB
Last updated
about 7 years ago
docker pull vlandau/qgis:3.4.10