Dockerfile for development of GUI applications with Python 3 + PyQt5
10K+
Dockerfile for development of GUI applications with Python 3 + PyQt5
Links: GitHub repo, Docker Hub
latest, 1.0qml, qml-1.0 - Add additional libraries for working with QML (bigger image size)Tested on Ubuntu 20.04
You can test if everything works with the small testing app included in this docker image. You can try it with:
docker run --rm -it \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
-u qtuser \
jozo/pyqt5 python3 /tmp/hello.py
You should see a window similar to this:

IP=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost +
You can test if everything works with the small testing app included in this docker image. You can try it with:
docker run --rm -it \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$IP:0 \
-u qtuser \
jozo/pyqt5 python3 /tmp/hello.py
Content type
Image
Digest
Size
170.2 MB
Last updated
almost 6 years ago
docker pull jozo/pyqt5