Running graphical application inside docker
To enable execution of graphical application inside the docker container you should add the DISPLAY
environment variable, and mount the /tmp/.X11-unix
.
- name: "QtCreator GUI for local edition"
docker: "my_company/devel-ubuntu-24.04_x86_64"
network: none
only: qtcreator
run_as: user
envs:
DISPLAY: "$DISPLAY"
HOME: /microci_workspace # Folder where qtcreator saves .config
volumes:
- destination: /tmp/.X11-unix
source: /tmp/.X11-unix
mode: rw
plugin:
name: bash
bash: |
qtcreator